From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: Re: *shell* TAB *Completions* fooled by $PWD/ Date: 11 Jul 2002 01:45:18 +0800 Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <8765znbhox.fsf@jidanni.org> References: <87vg7rutpk.fsf@jidanni.org> <200207081820.g68IKeP12935@aztec.santafe.edu> <87bs9hkatg.fsf@jidanni.org> <3D2C6579.3020005@ihs.com> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1026323551 30794 127.0.0.1 (10 Jul 2002 17:52:31 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 10 Jul 2002 17:52:31 +0000 (UTC) Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17SLde-00080W-00 for ; Wed, 10 Jul 2002 19:52:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17SLeL-0003Yy-00; Wed, 10 Jul 2002 13:53:13 -0400 Original-Received: from chx400.switch.ch ([130.59.10.2]) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17SLdt-0003XY-00 for ; Wed, 10 Jul 2002 13:52:45 -0400 Original-Received: from mail.fu-berlin.de ([160.45.11.165]) by chx400.switch.ch with esmtp (Exim 3.20 #1) id 17SLds-00003y-00 for gnu-emacs-bug@moderators.isc.org; Wed, 10 Jul 2002 19:52:44 +0200 Original-Received: by mail.fu-berlin.de (Smail3.2.0.98) from Curry.ZEDAT.FU-Berlin.DE (160.45.10.36) with esmtp id ; Wed, 10 Jul 2002 19:52:43 +0200 (MEST) Original-Received: by Curry.ZEDAT.FU-Berlin.DE (Smail3.2.0.98) from news.fu-berlin.de with bsmtp id ; Wed, 10 Jul 2002 19:52:43 +0200 (MEST) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: 61-227-47-235.hinet-ip.hinet.NET!not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 17 X-Orig-NNTP-Posting-Host: 61-227-47-235.hinet-ip.hinet.net (61.227.47.235) X-Orig-X-Trace: fu-berlin.de 1026323563 22875783 61.227.47.235 (16 [99749]) X-Orig-Path: 127.0.0.1!nobody User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:2599 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:2599 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