[Top][All Lists]

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

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

From: Dan Jacobson
Subject: Re: *shell* TAB *Completions* fooled by $PWD/
Date: 11 Jul 2002 01:45:18 +0800
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

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.
http://jidanni.org/ Taiwan(04)25854780

reply via email to

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