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: 10 Jul 2002 14:03:58 +0800 Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <87adp0glv5.fsf@jidanni.org> References: <87vg7rutpk.fsf@jidanni.org> <200207081820.g68IKeP12935@aztec.santafe.edu> <87bs9hkatg.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 1026314787 5525 127.0.0.1 (10 Jul 2002 15:26:27 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 10 Jul 2002 15:26: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 17SJMJ-0001Qs-00 for ; Wed, 10 Jul 2002 17:26: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 17SJN2-0005Dl-00; Wed, 10 Jul 2002 11:27:12 -0400 Original-Received: from ashd1-2.relay.mail.uu.net ([199.171.54.246]) by fencepost.gnu.org with smtp (Exim 3.35 #1 (Debian)) id 17SJM8-0005BQ-00 for ; Wed, 10 Jul 2002 11:26:16 -0400 Original-Received: from mail.fu-berlin.de by mr1.ash.ops.us.uu.net with ESMTP (peer crosschecked as: mail.fu-berlin.de [160.45.11.165]) id QQmwxp08990 for ; Wed, 10 Jul 2002 15:26:08 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 17:26:07 +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 17:26:07 +0200 (MEST) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: 61-227-47-184.hinet-ip.hinet.NET!not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 20 X-Orig-NNTP-Posting-Host: 61-227-47-184.hinet-ip.hinet.net (61.227.47.184) X-Orig-X-Trace: fu-berlin.de 1026314767 23178703 61.227.47.184 (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:2587 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:2587 >>>>> "M" == Miles Bader writes: M> jidanni@dman.ddts.net (Dan Jacobson) writes: >> $ cd; emacs -q >> x s h e l l c d SPC . . m o r e SPC $ P W D / >> Well, are the *Completions* those of .. or ~ ? M> In general, you can't rely on completion in shell-mode to know about the M> exact internal state of the shell process, since there's no way for M> emacs to figure that out (it tries to track the current directory, since M> that's very important, but even that can sometimes get messed up). The M> value of the PWD environment variable in emacs is just whatever value it M> got at startup. OK, then it should admit (in the minibuffer) that it might not know what it is/would be doing at this point, instead of confidently giving a list that is probably wrong, and thus fooling the user into thinking various files are/aren't in the current dir. -- http://jidanni.org/ Taiwan(04)25854780