delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/09/08/02:03:18

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: <413EA151.7E591B8@dessent.net>
Date: Tue, 07 Sep 2004 23:06:09 -0700
From: Brian Dessent <brian AT dessent DOT net>
Organization: My own little world...
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Problem executing a .bat script in a directory with spaces using bash
References: <5c8adab704090207557a3a359a AT mail DOT gmail DOT com> <4137566C DOT 7070203 AT sbcglobal DOT net> <5c8adab704090210405ea696e4 AT mail DOT gmail DOT com> <413760BD DOT 2080504 AT sbcglobal DOT net> <5c8adab70409021123291886c7 AT mail DOT gmail DOT com> <41376CD2 DOT 9090102 AT comcast DOT net> <41376D75 DOT 1060806 AT comcast DOT net> <loom DOT 20040903T154613-572 AT post DOT gmane DOT org> <Pine DOT GSO DOT 4 DOT 61 DOT 0409030951520 DOT 28876 AT slinky DOT cs DOT nyu DOT edu> <loom DOT 20040903T163722-711 AT post DOT gmane DOT org> <4139AF96 DOT 4274702 AT dessent DOT net> <loom DOT 20040907T163147-558 AT post DOT gmane DOT org> <loom DOT 20040907T170440-285 AT post DOT gmane DOT org>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com

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.

Am I missing something?  Is this really the next level? Should this be
that hard? It seems like doing it with crafty application of bourne
shell scripting is so painful, and still relies on cmd.exe.

Maybe it could be a feature of the 'run' command, so that it also has
the ability to launch programs without a console / in a new session /
whatever it's called.

Brian

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