This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Bash fails to run .bat file with spaces in pathname and argument


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Johnathon Jamison on 10/11/2006 3:11 PM:
> Hello,
> 
> I am having some funny behavior.  If I have a .bat file that is in a
> directory whose pathname contains a space, and an argument is given to
> the .bat file that has a space in it, then the .bat file fails to run.
> Instead, I get "'xxx' is not recognized as an internal or external
> command, operable program or batch file." where xxx is the portion of
> the complete path to the .bat file before the first space.

Sounds like you need to read up on shell quoting.

- --
Life is short - so eat dessert first!

Eric Blake             ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFLY/n84KuGfSFAYARAm9yAJ974wSz/HMicGxpVa5V5HMd90W6AgCfUfht
1MJ1anx8zornyb7X+jKkC3I=
=5Yj/
-----END PGP SIGNATURE-----

--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]