delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/30/11:08:22

Date: Sun, 30 Aug 1998 18:07:47 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: "Peter J. Farley III" <pjfarley AT banet DOT net>
cc: djgpp AT delorie DOT com
Subject: Re: Subtle bash/ls/environment bug?
In-Reply-To: <35e8e758.51804564@news1.banet.net>
Message-ID: <Pine.SUN.3.91.980830180222.20257s-100000@is>
MIME-Version: 1.0

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:/,`

- Raw text -


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