Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-Id: <199905210526.GAA17041@cav.logica.co.uk> Date: Fri, 21 May 1999 05:26:31 GMT To: cygwin AT sourceware DOT cygnus DOT com From: fieldhouse AT logica DOT com (Dirk Fieldhouse) Subject: Strangeness executing script with space in filename X-Mailer: Mozilla/4.0 (Windows 95;US) Opera 3.60 [en] B20.1, NT4W/SP3 Suppose I have files such as the following: /tmp/foo.exe /tmp/fum /tmp/New Folder/foo.exe /tmp/New Folder/fum where fum is a shell script. In bash 2.02, suppose w,x,y,z are variables set to each of these filenames. Then bash> "$w" # executes foo.exe bash> "$x" # executes fum script bash> "$y" # executes foo.exe bash> "$z" # loses: /test/New: not found (and incidentally z="/test/New\ Folder/fum" is no better) I'm not sure whether this is a bash/ash issue or more profound, eg cygwin exec(). Any ideas? -- Dirk Fieldhouse Logica UK Limited fieldhouse AT logica DOT com 75 Hampstead Road c=gb;a=attmail;p=logica; London NW1 2PL o=LOGICA;ou1=UK;s=fieldhouse UK +44 (171) 637 9111 -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com