delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/09/14/16:26:42

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
Message-ID: <EB0CB9EA028CD411B36300508BADE2AA0A384CC2@vanpgv1twfa03.ntserver.fub.com>
From: "Bryant, Neil" <nbryant AT wachoviasec DOT com>
To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: Re: Problem executing a .bat script in a directory with spaces us ing bash
Date: Tue, 14 Sep 2004 16:26:36 -0400
MIME-Version: 1.0
X-OriginalArrivalTime: 14 Sep 2004 20:26:36.0703 (UTC) FILETIME=[22296AF0:01C49A99]

> Christopher Cobb wrote:
> 
> > Conclusion: cmd.exe command line processing is brain dead.
> > 
> > Among the problems are that cmd.exe looks for /exactly/ one pair of
quotes and
> > no more (see my previous message).  And that (double) quotes are the
/only/ way
> > of quoting spaces.
> 
> Wow.  Hideous.
> 
> I wonder if there would be any demand for a small compiled wrapper
> program that understands cygwin mounts and posix paths, but is a win32
> app and calls the win32 or nt api directly to avoid all the quoting
> ridiculousless.  It would Just Do What I Mean(tm) when called from
> either cygwin or cmd, and be able to launch bat files, cmd files, any
> other script-file associations known to Windows, with shebang support as
> well.

Hideous, indeed. I always try to use a short file name for the executable
with CMD.exe -- saves *lots* of headaches and time.

I'm not sure how Sean is trying to launch the batch file (ie, from a batch
file, or compiled executable, etc) so how you would get a sfn would vary
(and I can only really speak on the Win side), but if you know the batch
exists, [cygpath -d "path\file.bat"] should give it in a usable manner.

~Neil

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