delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/03/23/04:02:47

Date: Tue, 23 Mar 1999 04:02:15 -0500
Message-Id: <199903230902.EAA13834@mescaline.gnu.org>
From: Eli Zaretskii <eliz AT gnu DOT org>
To: djgpp-workers AT delorie DOT com
In-reply-to: <199903221956.TAA47730@out4.ibm.net> (snowball3@usa.net)
Subject: Re: Bash 2.03 updated March 22nd
References: <199903221956 DOT TAA47730 AT out4 DOT ibm DOT net>
Reply-To: djgpp-workers AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

   From: "Mark E." <snowball3 AT usa DOT net>

   # The following is needed, to get not the // syntax, when
   # the configure script or the makefile calls pwd
   current_drive=`pwd | sed 's,//\(.\).*,\1,'`
   export SYSROOT=$current_drive:/

IMHO, that's a wrong work-around for the problem, even in theprevious
version of Bash.  The right way to do it is to say this:

	current_drive=`echo.exe $pwd` etc...

The magic use of echo.exe will cause Bash to convert the //c/foo into
c:/foo stuff.  (I'm sorry I cannot test the above now, so you might
need to experiment a bit to get it right.)  The trick is to call some
external program, so that Bash knows it has to convert the //c/foo
format.  This should work in Bash 2.03 as well, even if it doesn't
convert //c/foo pathnames when invoking programs.

- Raw text -


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