From: fjh@cs.mu.OZ.AU (Fergus Henderson)
Subject: why does /bin have to be *first* in the PATH?
5 Dec 1996 12:06:10 -0800
Sender: daemon@cygnus.com
Approved: cygnus.gnu-win32@cygnus.com
Distribution: cygnus
Message-ID: <199612051902.GAA21191.cygnus.gnu-win32@murlibobo.cs.mu.OZ.AU>
Content-Type: text
Original-To: gnu-win32@cygnus.com (gnu-win32)
X-Mailer: ELM [version 2.4 PL24]
Original-Sender: owner-gnu-win32@cygnus.com

Dear cygwin32 maintainers,

I have programs that rely on the ability to do

	PATH=../scripts:$PATH some_script

This breaks in gnu-win32 version b16.

The following untested patch might help.

--- spawn.cc	Thu Aug 29 12:57:46 1996
+++ new.spawn.cc	Fri Dec  6 05:55:01 1996
@@ -278,7 +278,7 @@
       debug_printf ("spawn_guts: %s is a script\n", prog_arg);
 
       char *sh_path_buf = (char *) alloca (MAX_PATH);
-      char *sh_path = (char *) find_exec ("sh", sh_path_buf);
+      char *sh_path = (char *) find_exec ("/bin/sh", sh_path_buf);
       char *f = (char *) alloca (strlen (copy) + strlen (sh_path) + 2);
       strcpy (f, sh_path);
       strcat (f, " ");

-- 
Fergus Henderson <fjh@cs.mu.oz.au>   |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>   |  of excellence is a lethal habit"
PGP: finger fjh@128.250.37.3         |     -- the last words of T. S. Garp.
-
For help on using this list, send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
