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

X-Spam-Check-By: sourceware.org
Date: Wed, 11 Oct 2006 22:57:58 -0400
From: Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Bash fails to run .bat file with spaces in pathname and argument
Message-ID: <20061012025758.GB10769@trixie.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
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>
Mime-Version: 1.0
In-Reply-To: <452DABED.5030409@cs.berkeley.edu>
User-Agent: Mutt/1.5.11
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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

On Wed, Oct 11, 2006 at 07:43:57PM -0700, Johnathon Jamison wrote:
>Respectfully, I think I know how shell quoting works.  If you look at 
>the sample run, all spaces are properly escaped with either backslashes 
>or double quotes.  The problem only surfaces when BOTH the program AND 
>the argument have spaces, AND the program is a .bat file.  If you run 
>what I have with only one item containing a space, or use a .sh script, 
>things work.  Further, if you look at one of my examples, there is no 
>space in the program being executed; the space is only present in the 
>current working directory, and so clearly the proper quoting of the 
>program is not at issue here.
>
>I have finally found someone else who has come across the same issue:
>http://sourceware.org/ml/cygwin/2004-09/msg00081.html
>Apparently this is a bug in cygwin:
>http://sourceware.org/ml/cygwin/2004-09/msg00145.html
>Is anybody working on this?

You found a message from more than two years ago and are asking if
anyone is working on the problem?  You must be a pretty optimistic
person.

Cygwin is a linux/UNIX emulation which has some accomodations for native
Windows things like .bat files.

The likelihood that any core cygwin developer is going to want to devote
time or effort into providing workarounds to make things work better for
Windowsisms like .bat files is not high.  So, if a Windowsism doesn't
work the way you want it to then you generally have two options 1)
(preferred) switch to using shell scripts or 2) provide a patch to fix
the behavior.

cgf

--
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