delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/08/16/16:47:52

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <20000816204705.18283.qmail@web120.yahoomail.com>
Date: Wed, 16 Aug 2000 13:47:05 -0700 (PDT)
From: Earnie Boyd <earnie_boyd AT yahoo DOT com>
Subject: Fwd: RE: problems passing -DPARAM="String" from sh
To: cygwin users <cygwin AT sourceware DOT cygnus DOT com>
MIME-Version: 1.0

--0-719885386-966458825=:14868
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline


Note: forwarded message attached.


=====
---
   Earnie Boyd: <mailto:earnie_boyd AT yahoo DOT com>
            __Cygwin: POSIX on Windows__
Cygwin Newbies: <http://gw32.freeyellow.com/>
           __Minimalist GNU for Windows__
  Mingw32 List: <http://www.egroups.com/group/mingw32/>
    Mingw Home: <http://www.mingw.org/>

__________________________________________________
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/
--0-719885386-966458825=:14868
Content-Type: message/rfc822
Content-Transfer-Encoding: 8bit

X-Apparently-To: earnie_boyd AT yahoo DOT com via mdd101.yahoomail.com
X-Track: 1: 40
Received: from ns1.nuance.com (63.199.150.199)
  by mta222.mail.yahoo.com with SMTP; 16 Aug 2000 13:08:01 -0700 (PDT)
Received: from sims.nuance.com (sims.nuance.com [10.0.0.15])
	by ns1.nuance.com (Switch-2.0.1/Switch-2.0.1) with ESMTP id e7GK5qD19043
	for <earnie_boyd AT yahoo DOT com>; Wed, 16 Aug 2000 13:06:02 -0700 (PDT)
Received: from gblais ([10.3.1.199])
 by sims.nuance.com (Sun Internet Mail Server sims.3.5.1999.07.30.00.05.p8)
 with SMTP id <0FZE00L02IJIE7 AT sims DOT nuance DOT com> for earnie_boyd AT yahoo DOT com; Wed,
 16 Aug 2000 13:06:55 -0700 (PDT)
Date: Wed, 16 Aug 2000 16:06:06 -0400
From: Gerard Blais <gblais AT nuance DOT com>
Subject: RE: problems passing -DPARAM="String" from sh
In-reply-to: <20000816010727 DOT 27024 DOT qmail AT web115 DOT yahoomail DOT com>
To: "'Earnie Boyd'" <earnie_boyd AT yahoo DOT com>
Reply-to: gblais AT nuance DOT com
Message-id: <004201c007bd$69e9d780$c701030a AT nuance DOT com>
MIME-version: 1.0
X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0)
Content-type: text/plain; charset="us-ascii"
Content-transfer-encoding: 8bit
Importance: Normal
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
X-Priority: 3 (Normal)
Content-Length: 1783

Hi Earnie, it does work fine with B20 (just tried it).  It does not work in
the latest cygwin version only when using a variable ($SOURCE).  When the
command is specified directly in the shell script, it works fine.

i.e.

#!/bin/sh
SOURCE="-DPARAM=\"This String\" file.cpp"
icl $SOURCE                                          # This line doesn't
work.
icl -DPARAM="This String" file.cpp                   # This line works fine.


I tried your suggestion of adding double quotes but it does not make a
difference, the space is still a problem.  Oh well, back to B20 I guess,
bummer.  If you find out something related to this problem, please let me
know.

Thanks for your help.

Gerard

-----Original Message-----
From: Earnie Boyd [mailto:earnie_boyd AT yahoo DOT com]
Sent: Tuesday, August 15, 2000 9:07 PM
To: gblais AT nuance DOT com; cygwin AT sourceware DOT cygnus DOT com
Subject: Re: problems passing -DPARAM="String" from sh


--- Gerard Blais <gblais AT nuance DOT com> wrote:
> The following sh script works fine with cygnus B20 but causes an error
with
> the latests cygwin.
>

I would be really surprised if this worked in B20.  It's always been a
problem.

> #!/bin/sh
> SOURCE="-DPARAM=\"Stringfirstpart Stringsecondpart\" file.cpp"

Try:
SOURCE="-DPARAM=\"\"\"Stringfirstpart Stringsecondpart\"\"\" file.cpp"
icl $SOURCE

You might also try quoting the space.

Cheers,

=====
---
   Earnie Boyd: <mailto:earnie_boyd AT yahoo DOT com>
            __Cygwin: POSIX on Windows__
Cygwin Newbies: <http://gw32.freeyellow.com/>
           __Minimalist GNU for Windows__
  Mingw32 List: <http://www.egroups.com/group/mingw32/>
    Mingw Home: <http://www.mingw.org/>

__________________________________________________
Do You Yahoo!?
Yahoo! Mail  Free email you can access from anywhere!
http://mail.yahoo.com/


--0-719885386-966458825=:14868
Content-Type: text/plain; charset=us-ascii

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
--0-719885386-966458825=:14868--

- Raw text -


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