GNU bug report logs -
#66903
29.1; shell-mode directory tracking incorrectly handles double slashes
Previous Next
Full log
View this message in rfc822 format
> From: Eshel Yaron <me <at> eshelyaron.com>
> Cc: darkfeline <at> felesatra.moe, 66903 <at> debbugs.gnu.org
> Date: Fri, 03 Nov 2023 13:35:46 +0100
>
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
> >> I just wanted to note that this is not really an option with M-x shell,
> >> because it is the shell, and not Emacs, that interprets "cd" and changes
> >> directory.
> >
> > You assume that shell.el must send everything the user types verbatim
> > to the shell?
>
> No, not "must" and not "everything", but if you think about it
> intercepting "cd" and altering its argument would make `M-x shell`
> incompatible with other shell interfaces, breaking valid command lines
> in weird ways. Does that make sense?
It does to me. To understand why, start Emacs in your HOME directory,
and then type this:
M-x cd RET ~//bin RET
This bug report was last modified 1 year and 224 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.