delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/10/13/22:12:52

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Enrico Forestieri <forenr AT tlc DOT unipr DOT it>
Subject: Re: Bash fails to run .bat file with spaces in pathname and argument
Date: Sat, 14 Oct 2006 02:12:17 +0000 (UTC)
Lines: 16
Message-ID: <loom.20061014T040717-230@post.gmane.org>
References: <452D5DF0 DOT 9070605 AT cs DOT berkeley DOT edu> <452D8FE7 DOT 9090705 AT byu DOT net> <452DABED DOT 5030409 AT cs DOT berkeley DOT edu> <5c8adab70610112003m34b68694n3a80a05a1187bce4 AT mail DOT gmail DOT com>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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

Sean Daley writes:

> Read further down that thread and you'll also see that people discovered some
> additional horrifying things about windows cmd.
> 
> http://sourceware.org/ml/cygwin/2004-09/msg00277.html

Referring to that old post, the following works:

C:\>cmd /c ""C:\Documents and Settings\test.bat" "Hello, world.""
"Hello, world."

Yes, quoting is quite weird with cmd.exe.

-- 
Enrico


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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