* Cannot pass space arguments to BATs contains spaces. @ 2012-08-14 1:25 Atry 2012-08-14 2:05 ` Sean Daley 0 siblings, 1 reply; 3+ messages in thread From: Atry @ 2012-08-14 1:25 UTC (permalink / raw) To: cygwin 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' 不是内部或外部命令,也不是可运行的程序 或批处理文件。 ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Cannot pass space arguments to BATs contains spaces. 2012-08-14 1:25 Cannot pass space arguments to BATs contains spaces Atry @ 2012-08-14 2:05 ` Sean Daley 2012-08-15 14:00 ` Atry 0 siblings, 1 reply; 3+ messages in thread From: Sean Daley @ 2012-08-14 2:05 UTC (permalink / raw) To: cygwin 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 ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Cannot pass space arguments to BATs contains spaces. 2012-08-14 2:05 ` Sean Daley @ 2012-08-15 14:00 ` Atry 0 siblings, 0 replies; 3+ messages in thread From: Atry @ 2012-08-15 14:00 UTC (permalink / raw) To: cygwin Thanks. The cmd is really weird. 2012/8/14 Sean Daley <spdaley@gmail.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: > 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 > -- 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 ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-08-15 13:10 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2012-08-14 1:25 Cannot pass space arguments to BATs contains spaces Atry 2012-08-14 2:05 ` Sean Daley 2012-08-15 14:00 ` Atry
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).