This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Strangeness executing script with space in filename


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@logica.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@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]