public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Eliot Moss <moss@cs.umass.edu>
To: cygwin@cygwin.com
Subject: Re: Cygwin bash script removing equal sign
Date: Thu, 25 Apr 2019 19:12:00 -0000	[thread overview]
Message-ID: <a3841d9d-8d0d-b060-51ff-e993fd33bcb9@cs.umass.edu> (raw)
In-Reply-To: <CADsY8Fjxh0wdafdxeVi3kDy6Q1vFKePnmtsyT7VzgkGDQUgFwA@mail.gmail.com>

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

  reply	other threads:[~2019-04-25 19:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-25 16:11 Peter Palaparthy
2019-04-25 19:12 ` Eliot Moss [this message]
2019-04-25 19:26 ` Hans-Bernhard Bröker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a3841d9d-8d0d-b060-51ff-e993fd33bcb9@cs.umass.edu \
    --to=moss@cs.umass.edu \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).