delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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 Schulman <andrex AT alumni DOT utexas DOT net> |
Subject: | Re: Spaces in Paths |
Date: | Mon, 28 Mar 2005 11:59:16 -0500 |
Lines: | 20 |
Message-ID: | <MPG.1cb201f37e4d85d09896de@localhost> |
References: | <fuag41pmagputqngs9robi6f1tv2ckk1r6 AT 4ax DOT com> <42483204 DOT 9050009 AT buddydog DOT org> <p2dg4152isoaf4nnqnu0hmtr4jcc1uakmp AT 4ax DOT com> |
Mime-Version: | 1.0 |
X-Complaints-To: | usenet AT sea DOT gmane DOT org |
X-Gmane-NNTP-Posting-Host: | pcp04399769pcs.nrockv01.md.comcast.net |
User-Agent: | MicroPlanet-Gravity/2.70.2067 |
X-Archive: | encrypt |
X-IsSubscribed: | yes |
> >> 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |