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


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?

Johnathon

Sean Daley wrote:

I'm not sure if it was ever fully decided that this was a cygwin bug since 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.

Sean



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