delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/08/13/21:26:02

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.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: <CA+nJC94ufjA2HZFAAohySp1iMSzERSuzQMgFDY=4b7CU9WSBJQ@mail.gmail.com>
References: <CA+nJC94ufjA2HZFAAohySp1iMSzERSuzQMgFDY=4b7CU9WSBJQ AT mail DOT gmail DOT com>
Date: Mon, 13 Aug 2012 21:25:38 -0400
Message-ID: <CAM7SfR1kBNTf3BKFjXNV+1mvct=r7D_OvLvzCdDd1sfPbbrhfg@mail.gmail.com>
Subject: Re: Cannot pass space arguments to BATs contains spaces.
From: Sean Daley <spdaley AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q7E1PwCK028874

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' ²»ÊÇÄÚ²¿»òÍⲿÃüÁҲ²»ÊÇ¿ÉÔËÐеijÌÐò
> »òÅú´¦ÀíÎļþ¡£

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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019