Spaces in Paths

Jonathan Arnold jdarnold@buddydog.org
Mon Mar 28 18:02:00 GMT 2005


zzapper wrote:
> Hi,
> 
> Mysql has now moved under c:/program files/
> 
> My backup bash script will run correctly if I use the follwing syntax 
> 
> /cygdrive/c/program\ files/mysql/MySQL\ Server\ 4.1/bin/mysqldump.exe $params
> 
> However it doesn't work if I try to load the above into a variable
> 
> eg
> 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.

-- 
Jonathan Arnold     (mailto:jdarnold@buddydog.org)
Amazing Developments       http://www.buddydog.org

I feel like a fugitive from the law of averages. -
  William H. Mauldin


--
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