delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/08/25/08:35:52

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>,
<http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <37C3E4CF.1FEE64B9@dev.tivoli.com>
Date: Wed, 25 Aug 1999 14:42:55 +0200
From: Rob Tulloh <rob_tulloh AT dev DOT tivoli DOT com>
X-Mailer: Mozilla 4.61 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: B20.1 sh and bash command line parsing question
References: <37C3CDD2 DOT F8BD4C58 AT dev DOT tivoli DOT com> <37C3D754 DOT 10C0EB7A AT ibm DOT net>

Ciao,

Erik Schumann wrote:
> 
> Rob Tulloh wrote:
> 
> > > I:\apps\work\cygnus\cygwin-b20>i:/apps/work/cygnus/CYGWIN~1/H-I586~1/bin/sh.exe
> > > -c "if [ -d \"c:/temp\" ] ; then echo \"hi there\" ; fi"
> > > Syntax error: Unterminated quoted string
> 
> What about quoting that whitespace too?
> 

I tried this and it didn't work either :-(

> i:\tmp>i:/apps/work/cygnus/CYGWIN~1/H-I586~
> 1/bin/sh.exe -c "if [ -d \"c:/temp\" ] ; then echo \"hi\ there\" ; fi"
> Syntax error: Unterminated quoted string
> 
> i:\tmp>i:/apps/work/cygnus/CYGWIN~1/H-I586~
> 1/bin/bash.exe -c "if [ -d \"c:/temp\" ] ; then echo \"hi\ there\" ; fi"
> there\ ; fi: -c: line 1: unexpected EOF while looking for matching `"'
> there\ ; fi: -c: line 2: syntax error: unexpected end of file
> 
> i:\tmp>i:/tools/gk/bin/sh.exe -c "if [ -d \
> "c:/temp\" ] ; then echo \"hi\ there\" ; fi"
> hi\ there

Thanks for the suggestion. I should have mentioned this in my original
note.

Rob

bcc: mailing list


> >
> > Comments?
> >
> > Thank you,
> >
> > Rob Tulloh
> >
> 
> cu
> Erik

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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