delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/12/16/05:00:52

From: Andrew Cottrell <andnews AT ihug DOT com DOT oz DOT au>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Which editor, and, install prob with tmp dir
Date: Mon, 16 Dec 2002 20:49:12 +1100
Organization: ECLiPSE
Lines: 20
Message-ID: <ut7rvuoq4slodefv97t3dg0stegnea0tgb@4ax.com>
References: <atk5ms$8sh$1 AT c3p0 DOT cc DOT swin DOT edu DOT au>
NNTP-Posting-Host: p190-tnt8.syd.ihug.com.au
Mime-Version: 1.0
X-Trace: lust.ihug.co.nz 1040032156 21013 203.173.147.190 (16 Dec 2002 09:49:16 GMT)
X-Complaints-To: abuse AT ihug DOT co DOT nz
NNTP-Posting-Date: Mon, 16 Dec 2002 09:49:16 +0000 (UTC)
X-Newsreader: Forte Agent 1.92/32.572
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

>1. What do you recommend as a basic text editor in djgpp?  Something that 
>honours whitespace properly (unlike MS Edit) but isn't huge like RHIDE, 
>and is not vi?  I'd love to use Joe but I can't get it to compile.
How about setedit? It's smaller than Rhide and is the editor that is
included in Rhide. 

What is the problem with compilng Joe? 

>Anyway, main query
>2. Why is getenv("TMPDIR") returning "c:\djgpp\tmp" (back slashes) when from 
>bash, TMPDIR is definitely set with forward slashes?  Thanks in advance 
>for help on this one, it's driving me... buggy!  :)
I may be wrong with this, but BASH is a unix shell and as such will
try to convert backslashs to forward slashes. It can use either and
converts between both.
The setup code to populate the environment variables copies DOS memory
and as dos uses backslahes when you call getenv() there are
backslashes in it. See crt1.c for environment setup.


- Raw text -


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