Mail Archives: djgpp-workers/2001/08/05/14:35:42
> From: "Mark E." <snowball3 AT bigfoot DOT com>
> Date: Sun, 5 Aug 2001 13:37:08 -0400
>
> djgpp.env contains lines that change backslashes to slashes in PATH before
> Bash sees the variable. Therefore unless PATH is explicitly changes, a
> program will receive PATH as it was at startup which isn't desirable since it
> will have forward slashes.
Why is this undesirable? Do you know about any specific program which
has problems with forward slashes in PATH?
FWIW, Emacs has been mirroring backslashes to forward slashes in PATH
since 1995, when Morten wrote the code to do that, and the only
complaint I heard during all those years was about nmake which claimed
it couldn't find the Microsoft compiler.
> Since at least 2.03, Bash has had code to handle
> importing and exporting variables like PATH, but it isn't run in the case of
> the caching I described. So the entries in djgpp.env serve no purpose and
> cause Bash to export a bad PATH.
This entry was added to djgpp.env because programs which were invoked
by Bash would echo parts of PATH with backslashes, and cause Bash to
interpret the backslashes in the result incorrectly as escape
characters. This was a long time ago, and it's quite possible that it
is no longer needed. However, if there's no good reason to remove
this, I think we shouldn't.
- Raw text -