Sender: rich AT phekda DOT freeserve DOT co DOT uk Message-ID: <3E14606E.E5B4D1A9@phekda.freeserve.co.uk> Date: Thu, 02 Jan 2003 15:53:18 +0000 From: Richard Dawe X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.23 i586) X-Accept-Language: de,fr MIME-Version: 1.0 To: djgpp AT delorie DOT com CC: Richard Dawe Subject: Handling of TMPDIR, TEMP by various DJGPP programs Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com 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/ ]