From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.bugs Subject: Re: *shell* TAB *Completions* fooled by $PWD/ Date: 10 Jul 2002 20:30:46 +0200 Organization: T-Online Sender: bug-gnu-emacs-admin@gnu.org Message-ID: 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 X-Trace: main.gmane.org 1026325831 4982 127.0.0.1 (10 Jul 2002 18:30:31 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 10 Jul 2002 18:30: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 17SMEQ-0001IE-00 for ; Wed, 10 Jul 2002 20:30:31 +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 17SMFA-0005AF-00; Wed, 10 Jul 2002 14:31:16 -0400 Original-Received: from mailout10.sul.t-online.com ([194.25.134.21]) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17SMEi-00059g-00 for ; Wed, 10 Jul 2002 14:30:48 -0400 Original-Received: from imh00.t-online.com by mailout10.sul.t-online.com with esmtp id 17SMEh-0005hC-00; Wed, 10 Jul 2002 20:30:47 +0200 Original-Received: from news.t-online.com by imh00.t-online.com with esmtp id 17SMEg-0001kw-00; Wed, 10 Jul 2002 20:30:46 +0200 Original-Received: from news by news.t-online.com with local id 17SMEg-00080d-00; Wed, 10 Jul 2002 20:30:46 +0200 Original-To: gnu-emacs-bug@prep.ai.mit.edu Original-Path: news.t-online.com!not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 25 Original-X-Trace: news.t-online.com 1026325846 03 29252 vJzYbEJXVWA8vz 020710 18:30:46 Original-X-Complaints-To: abuse@t-online.com X-Sender: 520018396234-0001@t-dialin.net X-Face: 2FEFf>]>q>2iw=B6,xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN;i";/yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 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:2602 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:2602 jidanni@dman.ddts.net (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: David.Kastrup@t-online.de