This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

problems passing -DPARAM="String" from sh


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

cygcheck.out

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]