Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com From: Andrew DeFaria Subject: Re: Spaces in Paths Date: Mon, 28 Mar 2005 08:43:22 -0800 Lines: 40 Message-ID: References: <42483204 DOT 9050009 AT buddydog DOT org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet AT sea DOT gmane DOT org X-Gmane-NNTP-Posting-Host: defaria.com User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) In-Reply-To: <42483204.9050009@buddydog.org> X-IsSubscribed: yes Jonathan Arnold wrote: > 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. Here's what I do: $ mount -bsf C:/Program\ Files /apps Thereafter change references of /cygdrive/c/program\ files -> /apps as in /apps/mysql/MySQL/Server\ 4.1/bin/mysqldump.exe - Hmmm... there's still another spaced path component there - the Server\ 4.1 portion. Not sure if that will completely solve your problem but it alleviates the problem with the space in Program Files and makes for a handy reference that allows for filename completions as in ls /apps/moz. You might need to change Server\ 4.1 to Server~1 or it's equivalent mangled short name. -- Did anyone see my lost carrier? -- 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/