Mail Archives: djgpp/2003/01/02/13:05:00
Hello.
$TMPDIR seems to have different slash directions, depending on which program I
use:
bash-2.04$ echo | awk "{ print ENVIRON[\"TMPDIR\"] }"
c:\temp
bash-2.04$ perl -e 'print $ENV{TMPDIR}."\n";'
c:\temp
bash-2.04$ sh -c 'echo $TMPDIR'
c:/temp
bash-2.04$ echo | awk "{ print ENVIRON[\"TEMP\"] }"
C:\TEMP
bash-2.04$ perl -e 'print $ENV{TEMP}."\n";'
C:\TEMP
bash-2.04$ sh -c 'echo $TEMP'
C:\TEMP
I suspect the programs are working as expected, but it's a bit confusing when
you have, say, Perl and shell script programs interacting. I wonder if TMPDIR
should be forward-slashified in awk & perl, like it is in bash.
Regards,
--
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]
- Raw text -