GNU bug report logs -
#60968
30.0.50; M-x shell keeps an old default-directory
Previous Next
Reported by: Manuel Giraud <manuel <at> ledu-giraud.fr>
Date: Fri, 20 Jan 2023 18:39:01 UTC
Severity: normal
Tags: notabug
Found in version 30.0.50
Done: Michael Albinus <michael.albinus <at> gmx.de>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Michael Albinus <michael.albinus <at> gmx.de> writes:
[...]
> This is the specified behavior of the `shell' command. From the
> docstring:
>
> If BUFFER exists but shell process is not running, make new shell.
> If BUFFER exists and shell process is running, just switch to BUFFER.
>
>
> That is, the shell buffer is reused, even if you have interrupted with
> C-g, and the shell didn't start yet. And so its default-directory.
>
> If you want another buffer (and another shell therefore), the following
> from the docstring is relevant:
>
> Interactively, a prefix arg means to prompt for BUFFER.
>
> So your use case needs "C-u M-x shell". Or you delete the shell buffer
> after you have interrupted with C-g.
Yes, you're right I'd better need to fix my usage because the "using an
existing shell buffer" feature is valuable. Sorry for this bug report
then.
--
Manuel Giraud
This bug report was last modified 2 years and 120 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.