delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/01/02/13:45:15

From: Martin Str|mberg <ams AT speedy DOT ludd DOT luth DOT se>
Subject: Re: Handling of TMPDIR, TEMP by various DJGPP programs
Newsgroups: comp.os.msdos.djgpp
References: <3E14606E DOT E5B4D1A9 AT phekda DOT freeserve DOT co DOT uk> <7458-Thu02Jan2003202306+0200-eliz AT is DOT elta DOT co DOT il>
User-Agent: tin/1.4.4-20000803 ("Vet for the Insane") (UNIX) (NetBSD/1.5_BETA (alpha))
Message-ID: <1041532689.964798@queeg.ludd.luth.se>
Cache-Post-Path: queeg.ludd.luth.se!unknown AT speedy DOT ludd DOT luth DOT se
X-Cache: nntpcache 2.4.0b5 (see http://www.nntpcache.org/)
Date: 02 Jan 2003 18:38:10 GMT
Lines: 23
NNTP-Posting-Host: queeg.ludd.luth.se
X-Trace: 1041532690 news.luth.se 26547 130.240.16.109
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> wrote:
:> From: Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk>
:> $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 _must_ have TMPDIR forward-slashed, or else lots of scripts will
: fall apart.  I don't know about Perl, but I think you are right
: assuming it should get the same treatment.

I've "set TMPDIR=t:/tmp" in my AUTOEXEC.BAT but still the perl snippet
above says "t:\tmp" so there's something more going on.


Right,

						MartinS

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019