Mail Archives: djgpp-workers/2002/07/13/17:56:46
Look at this:
-bash-2.04$ set|grep 'T.*MP'
TEMP=bbb
TMP=aaa
TMPDIR=t:/tmp
-bash-2.04$ env|grep 'T.*MP'
TMPDIR=t:\tmp
TEMP=bbb
TMP=aaa
-bash-2.04$ type env
env is hashed (E:/DJGPP/BIN/env.exe)
-bash-2.04$ ls -la `which bash`
-rwxr-xr-x 1 dosuser root 573440 Dec 24 2001 /dev/e/DJGPP/BIN/bash.ex
e
-bash-2.04$ set|grep BASH
BASH=e:/djgpp/bin/-bash
BASH_VERSINFO=([0]="2" [1]="04" [2]="7" [3]="1" [4]="release" [5]="i686-pc-msdos
djgpp")
BASH_VERSION='2.04.7(1)-release'
The problem is that TMPDIR's "/" is turned into "\" when an external
program is executed.
This really messes up Unix programs that turn "t:\tmp" into "t:tmp"
because of the \-escape. (The program where I discovered this is perl,
but I don't think it's perl's problem.)
Is that a bug? Or why is it happening?
Ideas?
Right,
MartinS
- Raw text -