Spaces in Paths
Andrew Schulman
andrex@alumni.utexas.net
Mon Mar 28 20:59:00 GMT 2005
> >> mysqldump='/cygdrive/c/program\ files/mysql/MySQL\ Server\ 4.1/bin/mysqldump.exe'
> >>
> >> I get "/cygdrive/c/program\: No such file or directory..."
> >>
> >> Is this just hard luck?
> >
> >Nope, just the way the quoting rules work. You've already quoted the spaces by
> >using the ' character around it. Either remove the \s or remove the 's.
> Jonathon,
> I believe I've tried all combinations! with single, double quotes, with and w/o backslashes
You should find and study a good reference on shell quoting. I first
learned about it from chapter 9 of Unix Power Tools, but I'm sure the
bash manual also describes it well. Unfortunately, in general it can be
quite a PITA to keep track of file names with spaces in them, especially
when you start working with lists of file names. But with practice it
gets easier.
Good luck,
Andrew.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list