Subject: Re: bug#66903: 29.1; shell-mode directory tracking incorrectly handles double slashes

From: Eli Zaretskii <[email-masked]>
Date: Fri, 03 Nov 2023 14:07:46 +0200

> From: Allen Li <[email-masked]>
> Date: Fri, 3 Nov 2023 03:43:35 -0700
> Cc: [email-masked]
> 
> Currently, `cd ~//bin` will cause the shell (Bash or similar) to change to ~/bin, and Emacs/shell-mode
> will change `default-directory` to `/bin`.
> 
> This bug is saying that Emacs/shell-mode should change `default-directory` to `~/bin` by default,

I think it should change default-directory to the directory to which
the shell switches, not necessarily ~/bin.