From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.bugs Subject: bug#15417: (compile "cd /u*r && ... cd: No such directory found via CDPATH environment variable Date: Wed, 25 Sep 2013 23:45:18 -0600 Message-ID: References: <87txhhf5ce.fsf@jidanni.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1380174445 7182 80.91.229.3 (26 Sep 2013 05:47:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 26 Sep 2013 05:47:25 +0000 (UTC) To: 15417@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 26 07:47:27 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VP4Q8-00035s-KU for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Sep 2013 07:47:24 +0200 Original-Received: from localhost ([::1]:56274 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VP4Q8-0004pP-6X for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Sep 2013 01:47:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38704) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VP4Pw-0004p8-BC for bug-gnu-emacs@gnu.org; Thu, 26 Sep 2013 01:47:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VP4Pm-0007hl-PN for bug-gnu-emacs@gnu.org; Thu, 26 Sep 2013 01:47:12 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56709) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VP4Pm-0007hg-MO for bug-gnu-emacs@gnu.org; Thu, 26 Sep 2013 01:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VP4Pm-00006c-C4 for bug-gnu-emacs@gnu.org; Thu, 26 Sep 2013 01:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kevin Rodgers Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Sep 2013 05:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15417 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.1380174365322 (code B ref -1); Thu, 26 Sep 2013 05:47:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 Sep 2013 05:46:05 +0000 Original-Received: from localhost ([127.0.0.1]:36767 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VP4Oq-000058-Mt for submit@debbugs.gnu.org; Thu, 26 Sep 2013 01:46:04 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36866) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VP4On-0008WI-Oj for submit@debbugs.gnu.org; Thu, 26 Sep 2013 01:46:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VP4Oe-0007HF-0i for submit@debbugs.gnu.org; Thu, 26 Sep 2013 01:46:01 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:48340) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VP4Od-0007H9-TZ for submit@debbugs.gnu.org; Thu, 26 Sep 2013 01:45:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38574) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VP4OW-0004mm-F5 for bug-gnu-emacs@gnu.org; Thu, 26 Sep 2013 01:45:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VP4OO-0007Fh-Pn for bug-gnu-emacs@gnu.org; Thu, 26 Sep 2013 01:45:44 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:59711) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VP4OO-0007FX-J2 for bug-gnu-emacs@gnu.org; Thu, 26 Sep 2013 01:45:36 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VP4OM-0001Wb-2d for bug-gnu-emacs@gnu.org; Thu, 26 Sep 2013 07:45:34 +0200 Original-Received: from 70-59-0-106.hlrn.qwest.net ([70.59.0.106]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 26 Sep 2013 07:45:34 +0200 Original-Received: from kevin.d.rodgers by 70-59-0-106.hlrn.qwest.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 26 Sep 2013 07:45:34 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 19 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 70-59-0-106.hlrn.qwest.net User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:78747 Archived-At: On 9/25/13 11:06 AM, Stefan Monnier wrote: >> Why is this a bug? i.e. is there a /u*r directory, and do its permissions > > Yes, in the shell (which is normally what runs this command), "cd /u*r" > will probably succeed by expanding "/u*r" to "/usr". > But the hack I added to "M-x compile" which tries to recognize a leading > "cd" gets in the way. Ah, I see. Seems like after extracting the arg and substituting the values of any referenced environment variables (already implemented by the current hack), you could pass the result to file-expand-wildcards. Then check that there is only a single directory in the result, and pass that directory to `cd'. -- Kevin Rodgers Denver, Colorado, USA