unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Jean Louis <bugs@gnu.support>
To: Jean Louis <bugs@gnu.support>
Cc: Lars Ingebrigtsen <larsi@gnus.org>, 43735@debbugs.gnu.org
Subject: bug#43735: 28.0.50; eshell: No such directory found via CDPATH environment variable
Date: Sat, 14 Nov 2020 10:16:57 +0300	[thread overview]
Message-ID: <X6+EaaLDAohISi1+@protected.rcdrun.com> (raw)
In-Reply-To: <20201007095949.GJ13893@protected.rcdrun.com>

* Jean Louis <bugs@gnu.support> [2020-11-14 02:14]:
> * Lars Ingebrigtsen <larsi@gnus.org> [2020-10-02 00:56]:
> > Jean Louis <bugs@gnu.support> writes:
> > 
> > > If you change within shell or eshell maybe no, I change it in .bashrc
> > > before launching and can reproduce reliably
> > 
> > My test case is
> > 
> > CDPATH="/var" emacs -Q
> > M-x eshell
> > $ cd tmp
> > /var/tmp $
> > 
> > So CDPATH works as advertised in eshell, as far as I can tell.
> 
> I have CDPATH defined in .bashrc
> 
> It is
> ":~:/home/data1/protected/Work/3rd-Dynamic/Corporation/Division_4/Dept_10/Company Formation"
> 
> Then I start: emacs -q
> 
> then: cd tmTAB it works, it expands to tmp and I enter tmp
> 
> Initially I am in directory /home/data1/protected
> 
> if I am in tmp, after cd .. I come back to /home/data1 instead of
> /home/data1/protected
> 
> then after cd .. if I wish to come back to home I can do cd ~ which
> works.

Another attempt to use Emacs shell where CDPATH is colliding with
eshell. Directory Software/ is there, it even expands by using TAB to
add the slash / on the end of word Software. So if it expands it does
find the directory, but then collides something with CDPATH

Welcome to the Emacs shell

~ $ cd Programming/
~/Programming $ cd Software/emacs/
No such directory found via CDPATH environment variable
~/Programming $ git pull
fatal: Not a git repository (or any parent up to mount point /home)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
~/Programming $ echo $CDPATH
./:~:/home/data1/protected/Work/3rd-Dynamic/Corporation/Division_4/Dept_10/Company Formation
~/Programming $ cd Software/
No such directory found via CDPATH environment variable
~/Programming $ ls 
BASIC      Gold     Perl6    RCDRUN                 TeX    emacs-lisp  hexadecimal   perl5
Documents  Haskell  Phone    Scheme                 c      git         languages     services
Forth      Lisp     Privacy  Software               clisp  groff       love          templeos
GNU        Perl     R        System Administration  dict   guile       peg-markdown  
~/Programming $
~/Programming $ unset CDPATH
~/Programming $ cd Software/
No such directory found via CDPATH environment variable
~/Programming $ 
~/Programming $ file Software/
Software/: directory






  reply	other threads:[~2020-11-14  7:16 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-01  4:28 bug#43735: 28.0.50; eshell: No such directory found via CDPATH environment variable Jean Louis
2020-10-01 16:56 ` Lars Ingebrigtsen
2020-10-01 17:30   ` Eli Zaretskii
2020-10-01 19:19     ` Jean Louis
2020-10-01 19:22       ` Lars Ingebrigtsen
2020-10-01 19:26         ` Jean Louis
2020-10-01 19:55           ` Lars Ingebrigtsen
2020-10-01 20:07             ` Lars Ingebrigtsen
2020-10-01 21:42               ` Jean Louis
2020-10-01 21:55                 ` Lars Ingebrigtsen
2020-10-02  7:39                   ` Colin Baxter
2020-10-07  9:59                   ` Jean Louis
2020-11-14  7:16                     ` Jean Louis [this message]
2020-10-02 20:43             ` Jean Louis
2020-10-03  7:37               ` Colin Baxter
2021-03-08 15:23             ` Stefan Kangas
2021-03-08 19:30               ` Lars Ingebrigtsen
2021-03-10 14:13                 ` Stefan Kangas
2020-10-01 19:00   ` bug#43735: 28.0.50; M-x shell: " Jean Louis
2020-10-01 19:07     ` Lars Ingebrigtsen
2020-10-01 19:25       ` bug#43735: 28.0.50; M-x eshell: " Jean Louis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=X6+EaaLDAohISi1+@protected.rcdrun.com \
    --to=bugs@gnu.support \
    --cc=43735@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).