[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Possible problem with M-x compile
From: |
Juri Linkov |
Subject: |
Re: Possible problem with M-x compile |
Date: |
Tue, 16 Nov 2004 19:01:19 +0200 |
User-agent: |
Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) |
Alexis Layton <address@hidden> writes:
>> cd $CLIENTLIB_BUILDDIR && fmake tests && make
>>
>> and this has worked for some time now, on Emacs versions 20 and above.
>> In the last two weeks however, the following error is presented:
>>
>> cd: No such directory found via CDPATH environment variable
>>
>> My shell is /bin/bash, and yes, the environment variable is defined,
>> as is CDPATH.
>>
> I also tried unsetting CDPATH before starting emacs, since
> CLIENTLIB_BUILDDIR is always absolute.
> Same error message, which leads me to believe the CDPATH part of the
> error message is a red
> herring and the problem is a general failure when the first part of
> the compile command is a cd.
> I am wondering if the emacs logic is trying to perform the cd itself,
> instead of letting the shell handle it?
The problem is that `cd' in `compilation-start' doesn't handle envvars.
Perhaps it should preprocess the command with `substitute-env-vars'.
--
Juri Linkov
http://www.jurta.org/emacs/