delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/10/24/05:30:44

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
From: "Hannu E K Nevalainen" <garbage_collector AT telia DOT com>
To: <cygwin AT cygwin DOT com>
Subject: RE: Strange Cygwin issue
Date: Fri, 24 Oct 2003 11:28:39 +0200
Message-ID: <NGBBLLIAMFLGJEOAJCCEMELLDFAA.garbage_collector@telia.com>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
In-reply-to: <bnafo3$50u$1@sea.gmane.org>
Importance: Normal

> From: Dylan Cuthbert
> Sent: Friday, October 24, 2003 8:10 AM

> Did you sort this problem out eventually?  We're having the same problem.
> 
> We pass a DOS command that we've compiled in Vis.C a parameter 
> from within a
> bash shell and all our quotes are "played" with.
> 
> ie.   #> ourcommand   'my oh my "this is a string" that is played with'
> 
> and we get    "my oh my \"this is a string\" that is played with"
> (including the surrounding double quotes) in our DOS program.
> 
> Not what we want really.

 I'd say; play with temporary files.

e.g:
$ echo >/tmp/tmp_$$ "command arg1 \"arg2.1 arg2.2\" arg.3"
$ cmd /c $(cygpath -WA /tmp/tmp_$$)
$ rm /tmp/tmp_$$

/Hannu E K Nevalainen, B.Sc. EE - 59?16.37'N, 17?12.60'E
-- printf("Timezone: %s\n", (DST)?"UTC+02":"UTC+01"); --
--END OF MESSAGE--

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