From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 53036 invoked by alias); 25 Apr 2019 19:12:58 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 53028 invoked by uid 89); 25 Apr 2019 19:12:57 -0000 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 Received: from mailsrv.cs.umass.edu (HELO mailsrv.cs.umass.edu) (128.119.240.136) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 25 Apr 2019 19:12:56 +0000 Received: from [192.168.25.230] (eduroamgw.cs.umass.edu [128.119.40.194]) by mailsrv.cs.umass.edu (Postfix) with ESMTPSA id F0601401DC97; Thu, 25 Apr 2019 15:12:54 -0400 (EDT) Reply-To: moss@cs.umass.edu Subject: Re: Cygwin bash script removing equal sign To: cygwin@cygwin.com References: From: Eliot Moss Message-ID: Date: Thu, 25 Apr 2019 19:12:00 -0000 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: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2019-04/txt/msg00180.txt.bz2 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