delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/02/02:33:55

Date: Mon, 2 Jun 1997 09:30:36 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: "Peter J. Farley III" <pjfarley AT dorsai DOT org>
cc: djgpp AT delorie DOT com
Subject: Re: REPOST: DJGPP/BASH: Need setup advice, please
In-Reply-To: <3391e800.9248884@news.dorsai.org>
Message-ID: <Pine.SUN.3.91.970602092958.26412F-100000@is>
MIME-Version: 1.0

On Sun, 1 Jun 1997, Peter J. Farley III wrote:

> in "/bin", and "/bin" *is* in the PATH.  If I then reset PATH to
> *just* "/bin", the "set | less" pipe works, but if I set it to
> ".:/bin" it does *not* work.

You aren't supposed to use `:' as PATH separator outside Bash, only
*inside* the shell.  Outside it, use the usual DOS `;' character, and
Bash will convert it to `:' for you if you set PATH_SEPARATOR=:.  When
Bash sees a colon `:' in the DOS PATH, it treats it as a drive
separator and will convert PATH incorrectly.

> I am using PATH_EXPAND=Y and PATHSEPARATOR=: in the BAT file, and I
                               ^^^^^^^^^^^^^
This should be PATH_SEPARATOR.

> set SYSROOT=//h/djgpp
> set PATH=.:/bin:%HOME%://c/://d/ut

Again, don't use this syntax outside Bash.  Say this instead:

	set SYSROOT=h:/djgpp
	set PATH=.;h:/djgpp/bin;%HOME%;c:/;d:/ut

and Bash will do the conversion for you.

- Raw text -


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