problems passing -DPARAM="String" from sh
Gerard Blais
gblais@nuance.com
Tue Aug 15 14:45:00 GMT 2000
The following sh script works fine with cygnus B20 but causes an error with
the latests cygwin.
#!/bin/sh
SOURCE="-DPARAM=\"Stringfirstpart Stringsecondpart\" file.cpp"
icl $SOURCE
This simply calls the icl (intel compiler) as: icl -DPARAM="Stringfirstpart
Stringsecondpart" file.cpp
The compiler complains about Stringsecondpart" not being a valid source
file. Somehow the space contained in the string causes the compiler to see
this as two seperate parameters even though they should be seen as a single
string. It works fine if the string has no spaces in it.
Gérard Blais Software Engineer, Core Software
Tel: (514) 732-4717 Nuance Communications Ltd.
Fax: (514) 767-2337 14 Place du Commerce, Suite 200
Email: gblais@nuance.com ÃÂle-des-Soeurs, Verdun, Québec, H3E 1T5
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck.out
Type: text/x-algol68
Size: 14918 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20000815/085ba99a/attachment.bin>
More information about the Cygwin
mailing list