Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Mon, 28 Mar 2005 12:42:58 -0500
From: Jean-Sebastien Trottier <jst1@email.com>
To: Cygwin Mailing List <cygwin@cygwin.com>
Subject: Re: Spaces in Paths
Message-ID: <20050328174258.GA31328@gw.jsoft.lan>
Mail-Followup-To: Cygwin Mailing List <cygwin@cygwin.com>
References: <fuag41pmagputqngs9robi6f1tv2ckk1r6@4ax.com>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="6TrnltStXW4iwmi0"
Content-Disposition: inline
In-Reply-To: <fuag41pmagputqngs9robi6f1tv2ckk1r6@4ax.com>
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--
