From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.bugs Subject: Re: *shell* TAB *Completions* fooled by $PWD/ Date: 09 Jul 2002 16:54:11 +0900 Sender: bug-gnu-emacs-admin@gnu.org Message-ID: References: <87vg7rutpk.fsf@jidanni.org> <200207081820.g68IKeP12935@aztec.santafe.edu> <87bs9hkatg.fsf@jidanni.org> Reply-To: Miles Bader NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1026201267 7418 127.0.0.1 (9 Jul 2002 07:54:27 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 9 Jul 2002 07:54: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 17RppK-0001vV-00 for ; Tue, 09 Jul 2002 09:54:26 +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 17Rpq1-0007DB-00; Tue, 09 Jul 2002 03:55:09 -0400 Original-Received: from tyo201.gate.nec.co.jp ([202.32.8.214]) by fencepost.gnu.org with smtp (Exim 3.35 #1 (Debian)) id 17RppA-0007CQ-00; Tue, 09 Jul 2002 03:54:17 -0400 Original-Received: from mailgate4.nec.co.jp ([10.7.69.195]) by TYO201.gate.nec.co.jp (8.11.6/3.7W01080315) with ESMTP id g697sER26403; Tue, 9 Jul 2002 16:54:14 +0900 (JST) Original-Received: from mailsv4.nec.co.jp (mailgate51.nec.co.jp [10.7.69.196]) by mailgate4.nec.co.jp (8.11.6/3.7W-MAILGATE-NEC) with ESMTP id g697sDa22196; Tue, 9 Jul 2002 16:54:13 +0900 (JST) Original-Received: from mcsss2.ucom.lsi.nec.co.jp ([10.30.114.133]) by mailsv4.nec.co.jp (8.11.6/3.7W-MAILSV4-NEC) with ESMTP id g697sCN27915; Tue, 9 Jul 2002 16:54:12 +0900 (JST) Original-Received: from mcspd15.ucom.lsi.nec.co.jp (mcspd15 [10.30.114.174]) by mcsss2.ucom.lsi.nec.co.jp (8.10.2+Sun/3.7Wlsi_mx_6.0) with ESMTP id g697sBK21723; Tue, 9 Jul 2002 16:54:11 +0900 (JST) Original-Received: by mcspd15.ucom.lsi.nec.co.jp (Postfix, from userid 31295) id C794E37D5; Tue, 9 Jul 2002 16:54:11 +0900 (JST) Original-To: bug-gnu-emacs@gnu.org System-Type: i686-pc-linux-gnu Blat: Foop In-Reply-To: <87bs9hkatg.fsf@jidanni.org> Original-Lines: 16 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:2541 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:2541 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 ~ ? In general, you can't rely on completion in shell-mode to know about the exact internal state of the shell process, since there's no way for emacs to figure that out (it tries to track the current directory, since that's very important, but even that can sometimes get messed up). The value of the PWD environment variable in emacs is just whatever value it got at startup. -Miles -- "Most attacks seem to take place at night, during a rainstorm, uphill, where four map sheets join." -- Anon. British Officer in WW I