This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
Re: [PATCH] Fix parameter passing containing quote/equal to Windows batch command
- From: Daniel Dai <daijyc at gmail dot com>
- To: cygwin-patches at cygwin dot com
- Date: Sun, 26 Jan 2014 22:52:56 -0800
- Subject: Re: [PATCH] Fix parameter passing containing quote/equal to Windows batch command
- Authentication-results: sourceware.org; auth=none
- References: <CABDpyCh3VMDmd4Rb64Fz-cb2HzUwtZ0cY9T3xWUC8_O-eqKO6Q at mail dot gmail dot com> <20140124203415 dot GA6857 at ednor dot casa dot cgf dot cx> <CABDpyCg40oJeq=TJxFqidVsuVKRfZycLkK+kCz=Td-QgJafu4g at mail dot gmail dot com> <20140125063503 dot GA4898 at ednor dot casa dot cgf dot cx>
Yes, that's the Unix behavior. However, bat file will eat the quote.
If you pass "a=b" to bat, you will only get a=b. That's why I can
quote the parameters containing equal sign. But anyway, if cygwin
automatically quote equal sign, I don't need to quote the parameter.
That should enough to solve my problem. Thanks Christopher!