From: 065211 AT bud DOT cc DOT swin DOT edu DOT au (MURPHY, Jeremy W) Newsgroups: comp.os.msdos.djgpp Subject: Re: Which editor, and, install prob with tmp dir Date: 26 Dec 2002 06:44:48 GMT Organization: Swinburne University of Technology Lines: 21 Message-ID: References: <5 DOT 1 DOT 1 DOT 6 DOT 2 DOT 20021218174514 DOT 028a6ec0 AT bud DOT cc DOT swin DOT edu DOT au> <5 DOT 1 DOT 1 DOT 6 DOT 2 DOT 20021219042514 DOT 02872d00 AT bud DOT cc DOT swin DOT edu DOT au> NNTP-Posting-Host: bud.cc.swin.edu.au X-Trace: c3p0.cc.swin.edu.au 1040885088 26372 136.186.1.113 (26 Dec 2002 06:44:48 GMT) X-Complaints-To: abuse AT swin DOT edu DOT au NNTP-Posting-Date: 26 Dec 2002 06:44:48 GMT X-Newsreader: TIN [version 1.2 PL2] To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Martin Stromberg (eplmst AT lu DOT erisoft DOT se) wrote: : Jeremy W. Murphy (jwm AT bud DOT cc DOT swin DOT edu DOT au) wrote: : : `dir' was just for the sake of example - this all came about because I am : : trying to compile Atlas, and the `config' program is failing to run `uname' : : with this error even _after_ I unset SHELL! : : system("uname -s > c:\djgpp\tmp/dj710000 2>&1"); : : c:\djgpp\tmp/dj910000: c:djgpptmp/dj710000: No such file or directory (ENOENT) : This is simple. "\" is special in C (and some other languages as : well). To get one you need to two ("\\"). Yeah... I think I've been away from programming for too long. :\ So now that I know what my question is, I'll reiterate: why my exported environment variable TMPDIR="c:/djgpp/tmp" appears as "c:\djgpp\tmp" when I call getenv()!? This is what is causing me all this confusion and grief. Details of producing this problem are in my previous post. Thanks again! Jeremy