| 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 |
| Date: | Mon, 28 Mar 2005 12:42:58 -0500 |
| From: | Jean-Sebastien Trottier <jst1 AT email DOT com> |
| To: | Cygwin Mailing List <cygwin AT cygwin DOT com> |
| Subject: | Re: Spaces in Paths |
| Message-ID: | <20050328174258.GA31328@gw.jsoft.lan> |
| Mail-Followup-To: | Cygwin Mailing List <cygwin AT cygwin DOT com> |
| References: | <fuag41pmagputqngs9robi6f1tv2ckk1r6 AT 4ax DOT com> |
| Mime-Version: | 1.0 |
| 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--
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |