GNU bug report logs -
#15417
(compile "cd /u*r && ... cd: No such directory found via CDPATH environment variable
Previous Next
Reported by: jidanni <at> jidanni.org
Date: Thu, 19 Sep 2013 10:58:02 UTC
Severity: minor
Done: Stefan Monnier <monnier <at> iro.umontreal.ca>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
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
This bug report was last modified 11 years and 239 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.