Article View: gnu.utils.bug
Article #1741make compatibility problem: $(shell ...) vs. `...`
From: Jonathan Rees
Date: Tue, 13 Feb 1990 23:48
Date: Tue, 13 Feb 1990 23:48
23 lines
1307 bytes
1307 bytes
The "make" supplied by at least two different vendors (HP and Sun(?)) supports the following feature: I can write a variable assignment of the form VAR = `a shell command` (e.g., DIR = `pwd`) and get behavior analgous to that of csh. In GNU make, I instead write VAR = $(shell a shell command) Now I can easily believe that GNU make is doing "the right thing," but my problem is that I can't think of anything I can write in a makefile to get this effect, such that the makefile will work either with GNU make or HP (etc.) make. Isn't this contrary to the usual policy for GNU utilities? The GNU make manual explicitly mentions the correspondence between $(shell ...) and `...`, so I assume you don't consider the incompatibility a bug; but why isn't it, and do you have any suggestions for a workaround? Thanks, and keep up the good work, Jonathan Rees
Technical Details
Message-ID:
<9002132348.AA15570@zurich.ai.mit.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ZURICH.AI.MIT.EDU!jarShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ZURICH.AI.MIT.EDU!jar From: jar@ZURICH.AI.MIT.EDU (Jonathan Rees) Newsgroups: gnu.utils.bug Subject: make compatibility problem: $(shell ...) vs. `...` Message-ID: <9002132348.AA15570@zurich.ai.mit.edu> Date: 13 Feb 90 23:48:29 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 23