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 Date: Mon, 28 Mar 2005 12:42:58 -0500 From: Jean-Sebastien Trottier To: Cygwin Mailing List Subject: Re: Spaces in Paths Message-ID: <20050328174258.GA31328@gw.jsoft.lan> Mail-Followup-To: Cygwin Mailing List References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="6TrnltStXW4iwmi0" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6+20040907i X-IsSubscribed: yes --6TrnltStXW4iwmi0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 28, 2005 at 05:15:07PM +0100, zzapper wrote: > Hi, >=20 > Mysql has now moved under c:/program files/ >=20 > My backup bash script will run correctly if I use the follwing syntax=20 >=20 > /cygdrive/c/program\ files/mysql/MySQL\ Server\ 4.1/bin/mysqldump.exe $pa= rams >=20 > However it doesn't work if I try to load the above into a variable >=20 > eg > mysqldump=3D'/cygdrive/c/program\ files/mysql/MySQL\ Server\ 4.1/bin/mysq= ldump.exe' >=20 > I get "/cygdrive/c/program\: No such file or directory..." >=20 > Is this just hard luck? Have you tried the following: mysqldump=3D"/cygdrive/c/program files/mysql/MySQL Server 4.1/bin/mysql= dump.exe" "$mysqldump" $params Without the double-quotes around the actual call, the variable gets split at spaces such that only the part up to the first space is treated as the command (/cygdrive/c/program\) and the rest as parameters Cheers, Sebastien --6TrnltStXW4iwmi0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQFCSEIiWHtULG0eY+ERAgQLAJ9IWHco0rQ/TIN9Fr5LFTEVZ/HaTgCgpImS 3JqbEYbhDpHAvzGMyEU4vWg= =j6Bp -----END PGP SIGNATURE----- --6TrnltStXW4iwmi0--