This is the mail archive of the
mailing list for the Cygwin project.
Re: Bash fails to run .bat file with spaces in pathname and argument
Johnathon Jamison wrote:
Sean Daley wrote:
I think that you are right in saying this is not a cygwin bug. Upon
further investigation, it seems it is a cmd misfeature. Would a patch
to oddly quote things that spawn_guts "knew" would be passed off to cmd
be accepted, given that it would not be a fix, but a kludgy workaround?
Or would it be rejected on the grounds that it would possibly introduce
instability and future traps?
I'm not sure if it was ever fully decided that this was a cygwin bug
windows cmd can also exhibit similar behavior.
I was the original poster back then. I eventually just worked around
the issue by
writing a native executable that did the same things the batch job was
supposed to do. Chris' suggestion of shell scripts also works as well.
Given your description, I think the patch would likely be rejected. Certainly
if there were a reasonable patch that addressed this issue in a maintainable
way, then it would certainly be considered. But it's impossible to say for
sure what will and will not be accepted without a patch on which to judge
the merits. It is fair to say that if you feel the patch is dubious, others
will likely agree.
Larry Hall http://www.rfk.com
RFK Partners, Inc. (508) 893-9779 - RFK Office
216 Dalton Rd. (508) 893-9889 - FAX
Holliston, MA 01746
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html