delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/30/14:30:49

From: pjfarley AT banet DOT net (Peter J. Farley III)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Subtle bash/ls/environment bug?
Date: Sun, 30 Aug 1998 18:20:25 GMT
Message-ID: <35e9977b.1586350@news1.banet.net>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 980830180222 DOT 20257s-100000 AT is>
NNTP-Posting-Host: 32.100.112.22
Organization: IBM.NET
Lines: 25
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> wrote:
>On Sun, 30 Aug 1998, Peter J. Farley III wrote:
>
>> I have found the place in configure where the absolute path is set, it
>> uses `pwd`.
>
>I think if you do NOT set PATH_SEPARATOR=:, `pwd` will return the normal 
>DOS-style path like h:/foo/bar, and everything will work.
>
>If you need to set PATH_SEPARATOR=: elsewhere in the script/Makefile, 
>just unset it on the particular command line that calls `pwd`.
>
>Alternatively, you could replace `pwd` with something like this:
>
>	`pwd | sed -e s,^//\([A-z]\)/,\1:/,`

Thanks again for alternatives.  I think what I'll do is put a DJGPP
conditional around the setting that uses `pwd` and use your last
suggestion as the action when making for DJGPP.

Thanks again for the (very!) helpful suggestions.

----------------------------------------------------
Peter J. Farley III (pjfarley AT nospam DOT dorsai DOT org OR
                     pjfarley AT nospam DOT banet DOT net)

- Raw text -


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