Strangeness executing script with space in filename
Mon May 31 21:10:00 GMT 1999
--- Dirk Fieldhouse <email@example.com> wrote:
> B20.1, NT4W/SP3
> Suppose I have files such as the following:
> /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.
> 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
> Any ideas?
Uh, one place it's /tmp/New Folder/fum and the other place it's /test/New\
Folder/fum. Besides that, the FAQ or perhaps the README at the cygwin/latest
directory states that you'll have problems with _spaces_ within a path. Yes
quoting should be used with the space.
"Earnie Boyd" < mailto:firstname.lastname@example.org >
CYGWIN RELATED HELP:
DOCUMENTATION: < http://sourceware.cygnus.com/cygwin/docs.html >
DLLHELP: < http://www.xraylith.wisc.edu/~khan/software/gnu-win32/ >
ARCHIVE SEARCH: < http://www.delorie.com/archives/ > OR
< http://www.eGroups.com/list/gnu-win32/ >
Do You Yahoo!?
Free instant messaging and more at http://messenger.yahoo.com
Want to unsubscribe from this list?
Send a message to email@example.com
More information about the Cygwin