From: scottk AT utig DOT ig DOT utexas DOT edu (Scott Kempf) Subject: Re: Shell scripts? 27 Jan 1997 18:28:27 -0800 Approved: cygnus DOT gnu-win32 AT cygnus DOT com Distribution: cygnus Message-ID: <199701272214.QAA04085.cygnus.gnu-win32@utig.ig.utexas.edu> Original-To: jan DOT linnell AT omgroup DOT com, sac24983 AT saclink DOT csus DOT edu Original-Cc: gnu-win32 AT cygnus DOT com Original-Sender: owner-gnu-win32 AT cygnus DOT com It is possible that you have more than one version of bash. Make sure that all your bash.exe and sh.exe are the same file length. Fork sometimes grabs the wrong executable. #!/usr/local/bin/perl.exe Will not work. Nor will "#!/bin/sh -x". I've made a patch to winsup/spawn.cc that seems to fix this. I haven't sent it out yet, since I wanted to make sure it was right. It seems that every version of UNIX I've tested rewrites the arguments a little differently, so I just did my own style. Can anyone tell me where I might find POSIX or X/OPEN system standards on the web? Scott - For help on using this list, send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".