Cannot pass space arguments to BATs contains spaces.
Wed Aug 15 14:00:00 GMT 2012
Thanks. The cmd is really weird.
2012/8/14 Sean Daley <email@example.com>
> On Mon, Aug 13, 2012 at 8:41 PM, Atry <> wrote:
> > I execute following command in bash:
> > echo 'echo %1' > 'hello world.bat'
> > chmod +x 'hello world.bat'
> > './hello world.bat' 'There are some spaces.'
> > And I got:
> > 'C:\Users\Atry\hello' 不是内部或外部命令，也不是可运行的程序
> > 或批处理文件。
> There's a thread from about 8 years ago which goes over quite a few
> issues with .bat files, spaces, and Cygwin. Though, eventually someone
> extrapolated a way to pull Cygwin out of the equation and show that
> even cmd could be broken pretty badly under some circumstances.
> Check out:
> for more information and to see if it might cover what you're running
> into now. That's the initial question, just read through some of
> the child responses to get more information.
> Problem reports: http://cygwin.com/problems.html
> FAQ: http://cygwin.com/faq/
> Documentation: http://cygwin.com/docs.html
> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin