This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Cannot pass space arguments to BATs contains spaces.
- From: Atry <pop dot atry at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 14 Aug 2012 08:41:34 +0800
- Subject: Cannot pass space arguments to BATs contains spaces.
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' 不是内部或外部命令,也不是可运行的程序
或批处理文件。