From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 19 06:57:08 2013 Received: (at submit) by debbugs.gnu.org; 19 Sep 2013 10:57:08 +0000 Received: from localhost ([127.0.0.1]:48445 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VMbv1-0003lZ-Jj for submit@debbugs.gnu.org; Thu, 19 Sep 2013 06:57:08 -0400 Received: from eggs.gnu.org ([208.118.235.92]:54807) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VMbuz-0003l3-65 for submit@debbugs.gnu.org; Thu, 19 Sep 2013 06:57:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VMbum-0001Lx-UT for submit@debbugs.gnu.org; Thu, 19 Sep 2013 06:56:59 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:46785) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMbum-0001Lt-RW for submit@debbugs.gnu.org; Thu, 19 Sep 2013 06:56:52 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56503) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMbug-0005c8-PD for bug-gnu-emacs@gnu.org; Thu, 19 Sep 2013 06:56:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VMbua-0001Ke-RE for bug-gnu-emacs@gnu.org; Thu, 19 Sep 2013 06:56:46 -0400 Received: from caiajhbdcbbj.dreamhost.com ([208.97.132.119]:32876 helo=homiemail-a4.g.dreamhost.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMbua-0001KE-Ia for bug-gnu-emacs@gnu.org; Thu, 19 Sep 2013 06:56:40 -0400 Received: from homiemail-a4.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a4.g.dreamhost.com (Postfix) with ESMTP id B98E551C07E for ; Thu, 19 Sep 2013 03:56:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type; s= jidanni.org; bh=r+6rl86zv835DSr4ig3AdhotKTE=; b=ofUGAlcD5TKfg87F 8airFyXD/vSKlB04d5gOzso3hYX/Pj6/mEEyvKuPeVfKY0rzci30udD45zk7fWnp yhoziuZZSTI5my5RrZdzL7CKREeO5y0sJ7p56U9BswHnJ0MOcdLq7lsQ6Jh08R05 71UGUj0UpRMRGUnMI1vZV+2oDhE= Received: from jidanni.org (111-246-87-163.dynamic.hinet.net [111.246.87.163]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by homiemail-a4.g.dreamhost.com (Postfix) with ESMTPSA id 61EC051C07B for ; Thu, 19 Sep 2013 03:56:38 -0700 (PDT) From: jidanni@jidanni.org To: bug-gnu-emacs@gnu.org Subject: (compile "cd /u*r && ... cd: No such directory found via CDPATH environment variable Date: Thu, 19 Sep 2013 18:55:45 +0800 Message-ID: <87txhhf5ce.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Cannot do (compile "cd /u*r && echo wow") will get cd: No such directory found via CDPATH environment variable OK, but add "kindly don't use wildcards" etc. to tell the user this is intentional if so... From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 25 01:44:42 2013 Received: (at submit) by debbugs.gnu.org; 25 Sep 2013 05:44:42 +0000 Received: from localhost ([127.0.0.1]:34031 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VOhty-0004iV-0P for submit@debbugs.gnu.org; Wed, 25 Sep 2013 01:44:42 -0400 Received: from eggs.gnu.org ([208.118.235.92]:35382) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VOhtu-0004iK-TU for submit@debbugs.gnu.org; Wed, 25 Sep 2013 01:44:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VOhtn-00027P-Sg for submit@debbugs.gnu.org; Wed, 25 Sep 2013 01:44:38 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:59297) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VOhtn-00027L-PE for submit@debbugs.gnu.org; Wed, 25 Sep 2013 01:44:31 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37072) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VOhth-0002IE-P8 for bug-gnu-emacs@gnu.org; Wed, 25 Sep 2013 01:44:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VOhtZ-00023v-Id for bug-gnu-emacs@gnu.org; Wed, 25 Sep 2013 01:44:25 -0400 Received: from plane.gmane.org ([80.91.229.3]:51712) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VOhtZ-00023E-Be for bug-gnu-emacs@gnu.org; Wed, 25 Sep 2013 01:44:17 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VOhtX-0003Gy-T8 for bug-gnu-emacs@gnu.org; Wed, 25 Sep 2013 07:44:15 +0200 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 ; Wed, 25 Sep 2013 07:44:15 +0200 Received: from kevin.d.rodgers by 70-59-0-106.hlrn.qwest.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 25 Sep 2013 07:44:15 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Kevin Rodgers Subject: Re: bug#15417: (compile "cd /u*r && ... cd: No such directory found via CDPATH environment variable Date: Tue, 24 Sep 2013 23:44:02 -0600 Lines: 15 Message-ID: References: <87txhhf5ce.fsf@jidanni.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: <87txhhf5ce.fsf@jidanni.org> 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-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.1 (----) On 9/19/13 4:55 AM, jidanni@jidanni.org wrote: > Cannot do > (compile "cd /u*r&& echo wow") > will get > cd: No such directory found via CDPATH environment variable > > OK, but add "kindly don't use wildcards" etc. to tell the user this is > intentional if so... Why is this a bug? i.e. is there a /u*r directory, and do its permissions allow you to cd to it (executable bit set for user/group/other as appropriate)? -- Kevin Rodgers Denver, Colorado, USA From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 25 13:06:22 2013 Received: (at 15417) by debbugs.gnu.org; 25 Sep 2013 17:06:22 +0000 Received: from localhost ([127.0.0.1]:35616 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VOsXe-000567-8w for submit@debbugs.gnu.org; Wed, 25 Sep 2013 13:06:22 -0400 Received: from pruche.dit.umontreal.ca ([132.204.246.22]:51191) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VOsXd-00055y-7i for 15417@debbugs.gnu.org; Wed, 25 Sep 2013 13:06:21 -0400 Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id r8PH6Kn3020792; Wed, 25 Sep 2013 13:06:20 -0400 Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 7EB92B4102; Wed, 25 Sep 2013 13:06:20 -0400 (EDT) From: Stefan Monnier To: Kevin Rodgers Subject: Re: bug#15417: (compile "cd /u*r && ... cd: No such directory found via CDPATH environment variable Message-ID: References: <87txhhf5ce.fsf@jidanni.org> Date: Wed, 25 Sep 2013 13:06:20 -0400 In-Reply-To: (Kevin Rodgers's message of "Tue, 24 Sep 2013 23:44:02 -0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Flag: NO X-NAI-Spam-Level: X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0.2 X-NAI-Spam-Rules: 2 Rules triggered GEN_SPAM_FEATRE=0.2, RV4712=0 X-NAI-Spam-Version: 2.3.0.9362 : core <4712> : inlines <101> : streams <1044649> : uri <1547293> X-Spam-Score: -3.3 (---) X-Debbugs-Envelope-To: 15417 Cc: 15417@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > 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. Stefan From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 26 01:46:05 2013 Received: (at submit) by debbugs.gnu.org; 26 Sep 2013 05:46:05 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,FREEMAIL_FROM autolearn=disabled version=3.3.2 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 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 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 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 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 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 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/ To: bug-gnu-emacs@gnu.org From: Kevin Rodgers Subject: Re: bug#15417: (compile "cd /u*r && ... cd: No such directory found via CDPATH environment variable Date: Wed, 25 Sep 2013 23:45:18 -0600 Lines: 19 Message-ID: References: <87txhhf5ce.fsf@jidanni.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.1 (----) 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 From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 26 09:56:55 2013 Received: (at 15417) by debbugs.gnu.org; 26 Sep 2013 13:56:55 +0000 Received: from localhost ([127.0.0.1]:37921 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VPC3p-0007qQ-Le for submit@debbugs.gnu.org; Thu, 26 Sep 2013 09:56:54 -0400 Received: from chene.dit.umontreal.ca ([132.204.246.20]:34765) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VPC3m-0007qK-Lo for 15417@debbugs.gnu.org; Thu, 26 Sep 2013 09:56:51 -0400 Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id r8QDuntF013932; Thu, 26 Sep 2013 09:56:49 -0400 Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 88EDDB415F; Thu, 26 Sep 2013 09:56:49 -0400 (EDT) From: Stefan Monnier To: Kevin Rodgers Subject: Re: bug#15417: (compile "cd /u*r && ... cd: No such directory found via CDPATH environment variable Message-ID: References: <87txhhf5ce.fsf@jidanni.org> Date: Thu, 26 Sep 2013 09:56:49 -0400 In-Reply-To: (Kevin Rodgers's message of "Wed, 25 Sep 2013 23:45:18 -0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4713=0 X-NAI-Spam-Version: 2.3.0.9362 : core <4713> : inlines <106> : streams <1045202> : uri <1548117> X-Spam-Score: -3.8 (---) X-Debbugs-Envelope-To: 15417 Cc: 15417@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.8 (---) > 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'. Indeed. Could you take care of it? Stefan From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 02 09:41:10 2013 Received: (at 15417) by debbugs.gnu.org; 2 Oct 2013 13:41:10 +0000 Received: from localhost ([127.0.0.1]:49269 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VRMft-0004Y1-Um for submit@debbugs.gnu.org; Wed, 02 Oct 2013 09:41:10 -0400 Received: from mail-qe0-f41.google.com ([209.85.128.41]:57579) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VRMfp-0004Xq-CB for 15417@debbugs.gnu.org; Wed, 02 Oct 2013 09:41:05 -0400 Received: by mail-qe0-f41.google.com with SMTP id 1so540344qee.0 for <15417@debbugs.gnu.org>; Wed, 02 Oct 2013 06:41:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=MK8DIHViLD3JLuCr9XlLrkMlw+XlB0YX+cBGzWJAn8Y=; b=vVuRFn33z7KlUjAFp9oq0v0Aq+KUr6RIFhZXHMLyJZzoYyZFqihSef/Q25cgshBeC3 ev6fsPAeUvtBcaov0RwFltAqmXt+is0YIfrjVcy2pkAgVowLZNTwQ0rTKcUSW31qHbzf IXEexeXMCItP4rQtAuHgLTLIkzLsMWftFQ9VD82Cz+J3+/Xa+7GcIwUsOSyn+LdCP+75 4MhmQU7chu+YXGHotaWQqOXpdIZkAA1aSIxZWMrRrYGZ8MDPJ9AO9rOqH40vZrleMYL2 XN/HwVJTSzkin+iNfufX/peNU0GqtUurMUaSkYa6tKfn/LGvztb+GAJMVJQuK+Lg/uMG h10w== MIME-Version: 1.0 X-Received: by 10.49.27.137 with SMTP id t9mr2811557qeg.70.1380721264811; Wed, 02 Oct 2013 06:41:04 -0700 (PDT) Received: by 10.49.128.4 with HTTP; Wed, 2 Oct 2013 06:41:04 -0700 (PDT) In-Reply-To: References: <87txhhf5ce.fsf@jidanni.org> Date: Wed, 2 Oct 2013 07:41:04 -0600 Message-ID: Subject: Re: bug#15417: (compile "cd /u*r && ... cd: No such directory found via CDPATH environment variable From: Kevin Rodgers To: Stefan Monnier Content-Type: multipart/alternative; boundary=047d7bdc085085fcd404e7c23838 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 15417 Cc: 15417@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --047d7bdc085085fcd404e7c23838 Content-Type: text/plain; charset=ISO-8859-1 > > 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'. > > Indeed. Could you take care of it? Sure, sorry for the delay: **** compile.el~ Fri Jan 21 18:08:13 2011 --- compile.el Wed Oct 2 07:25:47 2013 *************** *** 1217,1223 **** ;; sh -c "cd ..; make" (cd (if (string-match "^\\s *cd\\(?:\\s +\\(\\S +?\\)\\)?\\s *[;&\n]" command) (if (match-end 1) ! (substitute-env-vars (match-string 1 command)) "~") default-directory)) (erase-buffer) --- 1217,1229 ---- ;; sh -c "cd ..; make" (cd (if (string-match "^\\s *cd\\(?:\\s +\\(\\S +?\\)\\)?\\s *[;&\n]" command) (if (match-end 1) ! (let* ((substituted-dir ! (substitute-env-vars (match-string 1 command))) ! (expanded-dir ! (file-expand-wildcards substituted-dir))) ! (if (= (length expanded-dir) 1) ! (car expanded-dir) ! substituted-dir)) "~") default-directory)) (erase-buffer) -- Kevin Rodgers Denver, Colorado > > > Stefan > On Thu, Sep 26, 2013 at 7:56 AM, Stefan Monnier wrote: > > 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'. > > Indeed. Could you take care of it? > > > Stefan > --047d7bdc085085fcd404e7c23838 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
> > Seems like after extracting the <blabla> a= rg and substituting the values
> > of any referenced environment v= ariables (already implemented by the
> > current hack), you could = pass the result to file-expand-wildcards.=A0 Then
> > check that there is only a single directory in the result, and pa= ss that
> > directory to `cd'.
>
> Indeed.=A0 Cou= ld you take care of it?

Sure, sorry for the delay:

**** compi= le.el~=A0=A0=A0 Fri Jan 21 18:08:13 2011
--- compile.el=A0=A0=A0 Wed Oct=A0 2 07:25:47 2013
***************
**= * 1217,1223 ****
=A0 =A0=A0=A0 ;; sh -c "cd ..; make"
=A0 = =A0=A0=A0 (cd (if (string-match "^\\s *cd\\(?:\\s +\\(\\S +?\\)\\)?\\s= *[;&\n]" command)
=A0 =A0=A0=A0 =A0=A0=A0 (if (match-end 1)
! =A0=A0=A0 =A0=A0=A0 =A0=A0= =A0 (substitute-env-vars (match-string 1 command))
=A0 =A0=A0=A0 =A0=A0= =A0 =A0 "~")
=A0 =A0=A0=A0 =A0=A0=A0=A0=A0 default-directory))=
=A0 =A0=A0=A0 (erase-buffer)
--- 1217,1229 ----
=A0 =A0=A0=A0 ;; = sh -c "cd ..; make"
=A0 =A0=A0=A0 (cd (if (string-match "^\\s *cd\\(?:\\s +\\(\\S +?\\)\\)= ?\\s *[;&\n]" command)
=A0 =A0=A0=A0 =A0=A0=A0 (if (match-end 1= )
! =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 (let* ((substituted-dir
! =A0=A0=A0= =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 (substitute-env-vars (match-string 1 command= )))
! =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0 (expanded-dir
! =A0=A0=A0 =A0=A0= =A0 =A0=A0=A0 =A0=A0=A0 (file-expand-wildcards substituted-dir)))
! =A0= =A0=A0 =A0=A0=A0 =A0=A0=A0=A0=A0 (if (=3D (length expanded-dir) 1)
! =A0= =A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 (car expanded-dir)
! =A0=A0=A0 =A0=A0=A0 = =A0=A0=A0 substituted-dir))
=A0 =A0=A0=A0 =A0=A0=A0 =A0 "~")
=A0 =A0=A0=A0 =A0=A0=A0=A0=A0= default-directory))
=A0 =A0=A0=A0 (erase-buffer)

--
Kevin Rodgers
Denver= , Colorado



=A0 =A0 =A0 =A0 Stefan



On Thu, Sep 26, 2013 at 7:56 AM, Stefan= Monnier <monnier@iro.umontreal.ca> wrote:
> Seems like after extracting the <bla= bla> 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. =A0= Then
> check that there is only a single directory in the result, and pass th= at
> directory to `cd'.

Indeed. =A0Could you take care of it?


=A0 =A0 =A0 =A0 Stefan

--047d7bdc085085fcd404e7c23838-- From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 02 19:35:42 2013 Received: (at 15417-done) by debbugs.gnu.org; 2 Oct 2013 23:35:42 +0000 Received: from localhost ([127.0.0.1]:50582 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VRVxF-0001ab-NU for submit@debbugs.gnu.org; Wed, 02 Oct 2013 19:35:41 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.182]:38945) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VRVxB-0001aP-8m for 15417-done@debbugs.gnu.org; Wed, 02 Oct 2013 19:35:39 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFsoXM//2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kLodwBsEtkQoDpHqBXoMT X-IPAS-Result: Av4EABK/CFFsoXM//2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kLodwBsEtkQoDpHqBXoMT X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="34629530" Received: from 108-161-115-63.dsl.teksavvy.com (HELO pastel.home) ([108.161.115.63]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 02 Oct 2013 19:32:15 -0400 Received: by pastel.home (Postfix, from userid 20848) id E5CC963429; Wed, 2 Oct 2013 19:35:35 -0400 (EDT) From: Stefan Monnier To: Kevin Rodgers Subject: Re: bug#15417: (compile "cd /u*r && ... cd: No such directory found via CDPATH environment variable Message-ID: References: <87txhhf5ce.fsf@jidanni.org> Date: Wed, 02 Oct 2013 19:35:35 -0400 In-Reply-To: (Kevin Rodgers's message of "Wed, 2 Oct 2013 07:41:04 -0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 15417-done Cc: 15417-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) > Sure, sorry for the delay: Thanks, installed. There are still many ways to make the code fail, tho. I think the better solution would be to pass the whole argument to a shell, so we get the actually correct expansion. Stefan From unknown Wed Jun 25 02:07:09 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 31 Oct 2013 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator