delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/04/25/15:13:08

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:reply-to:subject:to:references:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=gfkeaMrGfB7w4kot
riTNPluy2mQ/VLtTmia6ys+avcSvfu8YFGgviPMBlMVrBluZ4vz7qVkmZWWKOc+i
CkF4wz6j70jfxZS+De56M20epwDtzWjHQKYzPWAGltonbAYBfi96QP3lyh495z1G
dJl2Vc9g75+uStfnEioHo7fPHQQ=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:reply-to:subject:to:references:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=yjovzCXFOnRsSdRheeVf38
D/Yt0=; b=joUBCfWhHIgn4SBlaOKX4vw+5DGS3XRQ2mvZky/8g4lic5Occ+PcRp
wNJvSJOmQCBwXRTFsMi3Eu3XFxOwrM71UeityRbirFr7IL5CZYtVN9EAhLoskTus
293RLf/V4X3m9RktgEtwDTcTJkHflLEpezudCbv8n+rklJDbxNvU4=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.1 spammy=H*Ad:D*edu
X-HELO: mailsrv.cs.umass.edu
Reply-To: moss AT cs DOT umass DOT edu
Subject: Re: Cygwin bash script removing equal sign
To: cygwin AT cygwin DOT com
References: <CADsY8Fjxh0wdafdxeVi3kDy6Q1vFKePnmtsyT7VzgkGDQUgFwA AT mail DOT gmail DOT com>
From: Eliot Moss <moss AT cs DOT umass DOT edu>
Message-ID: <a3841d9d-8d0d-b060-51ff-e993fd33bcb9@cs.umass.edu>
Date: Thu, 25 Apr 2019 15:12:54 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1
MIME-Version: 1.0
In-Reply-To: <CADsY8Fjxh0wdafdxeVi3kDy6Q1vFKePnmtsyT7VzgkGDQUgFwA@mail.gmail.com>
X-IsSubscribed: yes

On 4/25/2019 12:11 PM, Peter Palaparthy wrote:
> Cygwin bash script is removing equals sign from command call. How do I
> escape it so that = is sent to command?
> 
> I tried different things like escaping = with \ and enclosing it with ""
> and '' but none of them worked.
> 
> *Here is the relevant command in my makefile.*
> 
> 
> *$(elabcmd) = $(XELAB_DEFAULT) \-generic VERSION=10*
> 
> 
> *compile:$(elabcmd)*
> 
> *Here is the result:*
> 
> cygwin prompt:> make compile
> *Running: xelab.exe -generic VERSION 10*
> 
> *(note that the equal sign is not there)*
> 
> I want
> *xelab.exe -generic VERSION=10*

- I am not sure you need the \ on the -
- I wonder about the $(elabcmd) = ...   My expectation would
   be elabcmd = ...
- compile: ... is giving a dependency.  It seems you want a rule.
   In make, this would look more like:

compile: xelab.exe
	xelab.exe -generic VERSION=10

Making this more parameterized:

elabcmd = xelab.exe -generic VERSION=10

compile: xelab.exe
	$(elabcmd)

(Note: There is a TAB (not space), before that last $(elabcmd).)

Anyway, while I am happy to help a little, this is a generic Make question,
not specific to Cygwin ...

EM

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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