[Top][All Lists]

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

Re: *shell* TAB *Completions* fooled by $PWD/

From: Miles Bader
Subject: Re: *shell* TAB *Completions* fooled by $PWD/
Date: 09 Jul 2002 16:54:11 +0900

address@hidden (Dan Jacobson) writes:
> $ cd; emacs -q
> <escape> x s h e l l <return> c d SPC . . <return> m o r e SPC $ P W D / <tab>
> Well, are the *Completions* those of .. or ~ ?

In general, you can't rely on completion in shell-mode to know about the
exact internal state of the shell process, since there's no way for
emacs to figure that out (it tries to track the current directory, since
that's very important, but even that can sometimes get messed up).  The
value of the PWD environment variable in emacs is just whatever value it
got at startup.

"Most attacks seem to take place at night, during a rainstorm, uphill,
 where four map sheets join."   -- Anon. British Officer in WW I

reply via email to

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