Thread View: gnu.utils.bug
1 messages
1 total messages
Started by Jonathan Rees
Tue, 13 Feb 1990 23:48
make compatibility problem: $(shell ...) vs. `...`
Author: 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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads