B20.1 sh and bash command line parsing question

Rob Tulloh rob_tulloh@dev.tivoli.com
Tue Aug 31 23:49:00 GMT 1999


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@sourceware.cygnus.com



More information about the Cygwin mailing list