From: 065211 AT bud DOT cc DOT swin DOT edu DOT au (MURPHY, Jeremy W) Newsgroups: comp.os.msdos.djgpp Subject: Re: Handling of TMPDIR, TEMP by various DJGPP programs Date: 17 Jan 2003 08:17:42 GMT Organization: Swinburne University of Technology Lines: 26 Message-ID: References: <3E14606E DOT E5B4D1A9 AT phekda DOT freeserve DOT co DOT uk> <7458-Thu02Jan2003202306+0200-eliz AT is DOT elta DOT co DOT il> <1041532689 DOT 964798 AT queeg DOT ludd DOT luth DOT se> <3E14D4D7 DOT 7847EB0C AT phekda DOT freeserve DOT co DOT uk> <3E1EA03A DOT 7481FDCC AT phekda DOT freeserve DOT co DOT uk> NNTP-Posting-Host: bud.cc.swin.edu.au X-Trace: c3p0.cc.swin.edu.au 1042791462 25706 136.186.1.113 (17 Jan 2003 08:17:42 GMT) X-Complaints-To: abuse AT swin DOT edu DOT au NNTP-Posting-Date: 17 Jan 2003 08:17:42 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 Richard Dawe (rich AT phekda DOT freeserve DOT co DOT uk) wrote: : Hello. : "MURPHY, Jeremy W" wrote: : [snip] : > Under Win98 SE, if RHIDE is invoked directly, a sample getenv() program : > returns forward-slashes, but if you run RHIDE from bash, the sample : > program returns back-slashes. Which just follows the examples you made, : > I guess. : > : > Is there a simple way to tell djgpp to stop translating environment : > variables `/' to `\'? : I don't think it is translating /all/ environment variables - it's just bash : 2.04 translating a select few. Solution 1: don't use bash 2.04. Solution 2: : make your program cope with both directions of slash. Mmmm... if not bash, then what? I don't want to have to accomodate both slashes, I want bash to just act normal, so that simple programs written by everyone else for UNIX will run ok! Is it planned to change this slash translation behaviour or is it here to stay? Jeremy