[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SECONDEXPANSION and $(shell) bug in make 3.82.90

From: Martin d'Anjou
Subject: SECONDEXPANSION and $(shell) bug in make 3.82.90
Date: Thu, 12 Apr 2012 16:01:01 -0400


I try to use GNU Make at the CVS head because of the memory leak in 3.82

After much work to get the CVS head to compile on redhat 5.5 (had to do a
local install of gettext and misc toolchain stuff), I run into a problem
with the SECONDEXPANSION and $(shell):

Here is the makefile:
all: $$(shell find . \( -name "*.swp" \))
        echo $<

Here is the result:
$ make
/bin/sh: -c: line 0: syntax error near unexpected token `('
/bin/sh: -c: line 0: `find . ( -name "*.swp" )'

Here is the version:
$ make --version
GNU Make 3.82.90

There is no issue running this with make 3.81:
$ make
echo .makefile.swp
$ make --version
GNU Make 3.81

What should I do? I want 3.82 because of the ONESHELL feature.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]