From owner-freebsd-questions@FreeBSD.ORG Thu Sep 6 00:24:19 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 71763106564A for ; Thu, 6 Sep 2012 00:24:19 +0000 (UTC) (envelope-from bryan@shatow.net) Received: from secure.xzibition.com (secure.xzibition.com [173.160.118.92]) by mx1.freebsd.org (Postfix) with ESMTP id 1A11E8FC14 for ; Thu, 6 Sep 2012 00:24:18 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; c=nofws; d=shatow.net; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sweb; b=uT+Bn3 IPW/B3JXj0/8zvjd7xEZOeCirWR4lGMlTmsLDG7sLA5LVqxzMpY3vhWy2rhjWxbl utEk9YM3j5I+VilcyRA2jU1ettbsGxQNLBn5aPEJ/FoERyLD5wNaN60WTkCl+QJ1 tj2/9pPirQ7o7BcRt9Vm9UQ9WdIEyJCCvzh38= DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=shatow.net; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=sweb; bh=OBJu8FuHB1lf Ud72QRzA68b+Sl15KI763zuod55vjXk=; b=Z1rU/3p8pULs7j8aOe3gJ8wX2wW6 ESOg1brut8LSIiAAT1ZEDeH0dnJpHBUv8knxPOCr1cZKA+gveQzuZ5+7RVIgLqlO FkaYMjoNaceoGojvr1K4igr2Q2J0cBaxMP2Bfk3vIMwcC8KU/tPK8+lX8HDdvpD7 e+Ld6t7AZ8ERTC8= Received: (qmail 93254 invoked from network); 5 Sep 2012 19:24:16 -0500 Received: from unknown (HELO ?10.10.0.115?) (bryan@shatow.net@10.10.0.115) by sweb.xzibition.com with ESMTPA; 5 Sep 2012 19:24:16 -0500 Message-ID: <5047ED29.2040001@shatow.net> Date: Wed, 05 Sep 2012 19:24:09 -0500 From: Bryan Drewery User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120824 Thunderbird/15.0 MIME-Version: 1.0 To: tundra@tundraware.com References: <5047E804.7050406@tundraware.com> In-Reply-To: <5047E804.7050406@tundraware.com> X-Enigmail-Version: 1.4.4 OpenPGP: id=3C9B0CF9; url=http://www.shatow.net/bryan/bryan.asc Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Somewhat OT: Using Pipes Inside a GNU Make File X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Sep 2012 00:24:19 -0000 On 9/5/2012 7:02 PM, Tim Daneliuk wrote: > A bit off topic, but I'm kind of stuck. I am using gmake and want to > do something like this: > > FOO := $(shell a | b | c) > > But this appears not to work. Only the 'a' command is executed. The > remainder > of the pipeline is ignored. Is there some clean way to implement this > kind of thing? > > I use this in a GNUMakefile and it works fine. BRANCH := $(shell git branch --no-color | grep "^*" | sed -e 's/^\* //') You may need to post a more specific example. Bryan