bug-gnu-emacs
[Top][All Lists]
Advanced

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

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


From: David Kastrup
Subject: Re: *shell* TAB *Completions* fooled by $PWD/
Date: 10 Jul 2002 20:30:46 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

address@hidden (Dan Jacobson) writes:

> K> The shell.el directory tracking mechanism could be modified to update
> K> the PWD environment variable as well as its internal variables.  But
> 
> actually you are going to go nuts tracking all those variables,
> e.g. what if I do in a shell window,
> $ cd
> $ su bob
> $ cd inside
> etc. while you are tracking $PWD unless you somehow have a behind the
> scenes connection to get the real scoop from /proc or bash itself...
> Oh, and say bob's dir is mode 700
> $ su -c 'echo are you still following me?; bash -i' jimmy
> $ cd; echo i said su _-c_ to keep you off the trail, but then used bash -i
> 
> Anyway, it will never track perfectly.

Use
M-x eshell RET
Whatever it will be tracking, Emacs will know about it.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum
Email: address@hidden



reply via email to

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