www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/01/10/06:30:26

From: Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Handling of TMPDIR, TEMP by various DJGPP programs
Date: Fri, 10 Jan 2003 10:28:10 +0000
Lines: 20
Message-ID: <3E1EA03A.7481FDCC@phekda.freeserve.co.uk>
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> <avluri$96a$1 AT c3p0 DOT cc DOT swin DOT edu DOT au>
NNTP-Posting-Host: 62.136.89.237
Mime-Version: 1.0
X-Trace: news7.svr.pol.co.uk 1042197914 20450 62.136.89.237 (10 Jan 2003 11:25:14 GMT)
NNTP-Posting-Date: 10 Jan 2003 11:25:14 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.23 i586)
X-Accept-Language: de,fr
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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.

Regards,

-- 
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]

- Raw text -


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