unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Colin Baxter <m43cap@yandex.com>
To: 43735@debbugs.gnu.org
Subject: bug#43735: 28.0.50; eshell: No such directory found via CDPATH environment variable
Date: Sat, 03 Oct 2020 08:37:05 +0100	[thread overview]
Message-ID: <87wo07221q.fsf@yandex.com> (raw)
In-Reply-To: <86mu16tvqy.fsf@protected.rcdrun.com>

>>>>> Jean Louis <bugs@gnu.support> writes:

    > * Lars Ingebrigtsen <larsi@gnus.org> [2020-10-01 22:56]:
    >> Jean Louis <bugs@gnu.support> writes:
    >> 
    >> >> > I think it is related also to CDPATH. Now when I remove
    >> CDPATH from >> > .bashrc, then it works.
    >> >> 
    >> >> What's your CDPATH variable?
    >> >
    >> > export >
    >> CDPATH="./:~:/home/data1/protected/Work/3rd-Dynamic/Corporation/Division_4/Dept_10/Company
    >> > Formation"
    >> 
    >> I can reproduce this bug:
    >> 
    >> M-x eshell $ export CDPATH="/var" $ cd tmp No such directory
    >> found via CDPATH environment variable
    >> 
    >> (tmp does exist.)

    > It is reproducible, but I am starting from login with CDPATH in my
    > .bashrc, before starting Emacs. I am not chaning CDPATH within
    > Emacs inside, I did not test that.

    > If I start with CDPATH in .bashrc, as environment, that is where
    > problem starts.

Sorry, but it works for me even if I set the CDPATH in ~/.bashrc

In ~/.bashrc
# CDPATH
CDPATH=.:/home/<USERNAME>/1/2/
export CDPATH

Open xterm
echo $CDPATH --> .:/home/<USERNAME>/1/2/
emacs -q <RET>
M-x shell <RET>
In shell
cd <RET>
echo $CDPATH --> .:/home/<USERNAME>/1/2/
cd 3 <RET>
pwd -- > /home/<USERNAME>/1/2/3


Ditto for eshell.

However in eshell the sequence of commands
cd <RET>
cd 3 <RET>
cd ../ <RET>
ls --> /HOME
cd ../ <RET>
ls --> /<USERNAME>
cd <RET>
ls --> all files and directories in $HOME are listed as normal

The odd behaviour of eshell does not occur in shell.

Again, I'm using emacs-28.0.50

Best wishes,

Colin.


Colin Baxter
URL: http://www.Colin-Baxter.com






  reply	other threads:[~2020-10-03  7:37 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
2020-10-02 20:43             ` Jean Louis
2020-10-03  7:37               ` Colin Baxter [this message]
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=87wo07221q.fsf@yandex.com \
    --to=m43cap@yandex.com \
    --cc=43735@debbugs.gnu.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).