From: Andrew Cottrell 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: References: NNTP-Posting-Host: p190-tnt8.syd.ihug.com.au Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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.