Mail Archives: djgpp/1997/06/02/02:33:55
On Sun, 1 Jun 1997, Peter J. Farley III wrote:
> in "/bin", and "/bin" *is* in the PATH. If I then reset PATH to
> *just* "/bin", the "set | less" pipe works, but if I set it to
> ".:/bin" it does *not* work.
You aren't supposed to use `:' as PATH separator outside Bash, only
*inside* the shell. Outside it, use the usual DOS `;' character, and
Bash will convert it to `:' for you if you set PATH_SEPARATOR=:. When
Bash sees a colon `:' in the DOS PATH, it treats it as a drive
separator and will convert PATH incorrectly.
> I am using PATH_EXPAND=Y and PATHSEPARATOR=: in the BAT file, and I
^^^^^^^^^^^^^
This should be PATH_SEPARATOR.
> set SYSROOT=//h/djgpp
> set PATH=.:/bin:%HOME%://c/://d/ut
Again, don't use this syntax outside Bash. Say this instead:
set SYSROOT=h:/djgpp
set PATH=.;h:/djgpp/bin;%HOME%;c:/;d:/ut
and Bash will do the conversion for you.
- Raw text -