X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=1.0 required=5.0 tests=AWL,BAYES_50,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,MIME_CHARSET_FARAWAY,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: References: From: Atry Date: Wed, 15 Aug 2012 21:10:08 +0800 Message-ID: Subject: Re: Cannot pass space arguments to BATs contains spaces. To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=GB2312 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q7FDAoXU026285 Thanks. The cmd is really weird. 2012/8/14 Sean Daley > > 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