all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#66903: 29.1; shell-mode directory tracking incorrectly handles double slashes
@ 2023-11-03  0:14 Allen Li
  2023-11-03  7:15 ` Eli Zaretskii
  0 siblings, 1 reply; 14+ messages in thread
From: Allen Li @ 2023-11-03  0:14 UTC (permalink / raw)
  To: 66903

[-- Attachment #1: Type: text/plain, Size: 805 bytes --]

Reproduce:

(assume ~/bin exists)

1. M-x shell RET
2. cd ~//bin RET
3. M-: default-directory RET

Expected:

default-directory is ~/bin

Actual:

default-directory is /bin

It seems like the directory tracker uses Emacs's convention for double
slashes "resetting" a path to root, but most shells treat double slashes
the same as single slashes.

It looks like this should be fixed in `shell-cd` (which should also fix
`shell-process-pushd`) by implementing "custom" path handling (compared
to Emacs default path handling behavior).

In GNU Emacs 29.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.37,
 cairo version 1.16.0) of 2023-09-03, modified by Debian built on
 kokoro-ubuntu
Windowing system distributor 'The X.Org Foundation', version 11.0.12101007
System Description: Debian GNU/Linux rodete

[-- Attachment #2: Type: text/html, Size: 949 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2023-11-04  6:34 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-03  0:14 bug#66903: 29.1; shell-mode directory tracking incorrectly handles double slashes Allen Li
2023-11-03  7:15 ` Eli Zaretskii
2023-11-03  7:22   ` Allen Li
2023-11-03  7:26     ` Eli Zaretskii
2023-11-03  8:35       ` Eshel Yaron via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-11-03 12:02         ` Eli Zaretskii
2023-11-03 12:35           ` Eshel Yaron via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-11-03 14:24             ` Eli Zaretskii
2023-11-04  0:21               ` Stefan Kangas
2023-11-04  2:53                 ` Visuwesh
2023-11-03 10:43       ` Allen Li
2023-11-03 12:07         ` Eli Zaretskii
2023-11-03 20:54           ` Allen Li
2023-11-04  6:34             ` Eli Zaretskii

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.