From: Stefan Kangas <stefan@marxist.se>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 43735@debbugs.gnu.org, Jean Louis <bugs@gnu.support>
Subject: bug#43735: 28.0.50; eshell: No such directory found via CDPATH environment variable
Date: Wed, 10 Mar 2021 06:13:57 -0800 [thread overview]
Message-ID: <CADwFkmnDGJTAWDJvgGLv6CU8d-SVjM0CsP_unG_LLY1GSYVBfA@mail.gmail.com> (raw)
In-Reply-To: <87ft15mojb.fsf@gnus.org>
Lars Ingebrigtsen <larsi@gnus.org> writes:
> Stefan Kangas <stefan@marxist.se> writes:
>
>> BTW, the error message here should really not be talking about CDPATH in
>> this case, it is just confusing:
>>
>> Welcome to the Emacs shell
>>
>> ~/org/notes $ cd ~/wip/non-existent
>> No such directory found via CDPATH environment variable
>> ~/org/notes $ cd ~/wip/emacs
>> ~/wip/emacs $
>>
>> But (getenv "CDPATH") => nil
>
> Yes, I agree completely.
I installed the following on master, but we still have to fix the bug in
this report:
diff --git a/lisp/files.el b/lisp/files.el
index e5fa1d8b22..2868be77f2 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -823,7 +823,9 @@ cd
(expand-file-name dir))
(locate-file dir cd-path nil
(lambda (f) (and (file-directory-p f) 'dir-ok)))
- (error "No such directory found via CDPATH environment variable"))))
+ (if (getenv "CDPATH")
+ (error "No such directory found via CDPATH environment
variable: %s" dir)
+ (error "No such directory: %s" dir)))))
(defun directory-files-recursively (dir regexp
&optional include-directories predicate
next prev parent reply other threads:[~2021-03-10 14:13 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
2021-03-08 15:23 ` Stefan Kangas
2021-03-08 19:30 ` Lars Ingebrigtsen
2021-03-10 14:13 ` Stefan Kangas [this message]
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=CADwFkmnDGJTAWDJvgGLv6CU8d-SVjM0CsP_unG_LLY1GSYVBfA@mail.gmail.com \
--to=stefan@marxist.se \
--cc=43735@debbugs.gnu.org \
--cc=bugs@gnu.support \
--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).