From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.bugs Subject: Re: *shell* TAB *Completions* fooled by $PWD/ Date: Wed, 10 Jul 2002 12:21:18 -0600 Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <3D2C7B1E.2010205@ihs.com> References: <87vg7rutpk.fsf@jidanni.org> <200207081820.g68IKeP12935@aztec.santafe.edu> <87bs9hkatg.fsf@jidanni.org> <3D2C6579.3020005@ihs.com> <8765znbhox.fsf@jidanni.org> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1026325287 3613 127.0.0.1 (10 Jul 2002 18:21:27 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 10 Jul 2002 18:21:27 +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 17SM5e-0000w3-00 for ; Wed, 10 Jul 2002 20:21:27 +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 17SM6O-0004mE-00; Wed, 10 Jul 2002 14:22:12 -0400 Original-Received: from sjc3-1.relay.mail.uu.net ([199.171.54.122]) by fencepost.gnu.org with smtp (Exim 3.35 #1 (Debian)) id 17SM5R-0004lo-00 for ; Wed, 10 Jul 2002 14:21:14 -0400 Original-Received: from mail.fu-berlin.de by sjc3sosrv11.alter.net with ESMTP (peer crosschecked as: mail.fu-berlin.de [160.45.11.165]) id QQmwyb23029 for ; Wed, 10 Jul 2002 18:21:13 GMT 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 20:21:11 +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 20:21:11 +0200 (MEST) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: 170.207.51.80!not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 32 X-Orig-NNTP-Posting-Host: 170.207.51.80 X-Orig-X-Trace: fu-berlin.de 1026325271 23267673 170.207.51.80 (16 [82742]) User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 X-Accept-Language: en-us 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:2601 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:2601 Dan Jacobson wrote: > 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... What do you care? You haven't exhibited any interest at all in implementation issues since you started bombarding this group with feature requests. > 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. The point is that however well it does track could be made available to the user for completion via the PWD environment variable as well as the default-directory Emacs variable. -- Kevin Rodgers