unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <kevin.d.rodgers@gmail.com>
To: 15417@debbugs.gnu.org
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	[thread overview]
Message-ID: <l20hl7$5me$1@ger.gmane.org> (raw)
In-Reply-To: <jwvd2nwx26q.fsf-monnier+emacsbugs@gnu.org>

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<blabla>" gets in the way.

Ah, I see.

Seems like after extracting the <blabla> 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






  reply	other threads:[~2013-09-26  5:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-19 10:55 bug#15417: (compile "cd /u*r && ... cd: No such directory found via CDPATH environment variable jidanni
2013-09-25  5:44 ` Kevin Rodgers
2013-09-25 17:06   ` Stefan Monnier
2013-09-26  5:45     ` Kevin Rodgers [this message]
2013-09-26 13:56       ` Stefan Monnier
2013-10-02 13:41         ` Kevin Rodgers
2013-10-02 23:35           ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='l20hl7$5me$1@ger.gmane.org' \
    --to=kevin.d.rodgers@gmail.com \
    --cc=15417@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).