Mail Archives: djgpp/1997/02/23/05:58:45
> o added PATH_EXPAND variable for expanding paths when external command
> invoked.
OK, I tested this (with a few GNU configure scripts) on a machine with
more than one disk drive. It works OK, thanks. But I have problems
with the feature that expands pathnames inside double quotes:
SYSROOT=c:
PATH_SEPARATOR=:
PATH_EXPAND=y
"/foobar" -> "c:/foobar"
To understand why this might be a problem, imagine the following sed
command:
sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
(this is actually a line from many GNU configure scripts; it causes
the file `po/POTFILES' to be read by sed when it sees a line which has
the string "POTFILES =" in it). With the above settings, sed gets a
command line it cannot grok:
sed -e "c:/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
Of course, I could either (1) change double quotes to single quotes,
or (2) not set SYSROOT at all, to work around this. But I don't see
why we need at all to expand pathnames inside double quotes? If there
are certain programs that do need this, maybe we should have an
environment variable which lists such programs?
- Raw text -