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: Cannot pass space arguments to BATs contains spaces.


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:
http://cygwin.com/ml/cygwin/2004-09/msg00081.html
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.

Sean

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


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