emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Wrong default-directory in shell buffer


From: Stefan Monnier
Subject: Re: Wrong default-directory in shell buffer
Date: Sun, 15 May 2022 12:06:22 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

> With a recent build from master branch, I sometime have a wrong value
> ("/../" to be precise) for the default-directory variable associated to
> shell buffers.  I create shell buffers with project-shell, the
> default-directory value is the expected one, the wrong value appears
> after I've executed some commands.
>
> (As a consequence all project-* commands fail to recognize current
> project and I am asked to select a project which is really annoying.)
>
> I have not found a recipe to reproduce; But I've found that I've
> executed commands containing the string "/../" in a shell buffer with
> the problem:
>
> cd ../../
> pushd ../../
> xdg-open ../../

Could it be related to "directory tracking", then?

There are several different "solutions" to have shell buffers's
`default-directory` track the PWD of the shell, so I'm not sure which
one might be at fault here (if any).


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]