Mail Archives: djgpp/1999/07/01/09:51:13
Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> wrote:
>
>On Wed, 30 Jun 1999, Teun Burgers wrote:
>
>> On cygwin $COMSPEC is also defined. With this patch,
>> IFS is set to ; on cygwin causing the search for
>> programs to fail there. If : is going to
>> ac_test_flag="-f"
>> if ! test -z "$COMSPEC$ComSpec"; then
>> ac_test_flag="-x"
>> fi
Yep, probably should have used DJDIR instead of COMSPEC. But unless an
official GNU maintainer starts using the DJGPP port to generate configure
scripts, it shouldn't be a big problem.
>
>I'm not sure IFS needs to be changed at all, even if : is not the
>default in the DJGPP port of Bash. We can always set PATH_SEPARATOR=:
>before running the configure script. Changing IFS might break
>something with the DJGPP port as well.
In the part of the code in question, IFS is saved, then changed so the PATH
variable can be word split, and the saved value of IFS restored. If IFS=":'
and PATH_SEPARATOR=";" and IFS isn't changed to PATH_SEPARATOR, the PATH
will be split incorrectly.
Given PATH=c:/djgpp/bin;c:/windows;c:/windows/command
the result of the word split will be:
c /djgpp/bin;c /windows;c /windows/command
Not what we wanted. This is why IFS is changed to be set according to
PATH_SEPARATOR, so PATH is split correctly and whatever file in question
has a chance of being found.
Mark
--
Mark E.: snowball3 AT bigfoot DOT com
http://snowball.frogspace.net/
- Raw text -