[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
make-1.79.1: $(shell) doesn't handle '#' correctly?
From: |
Wolfgang Schludi |
Subject: |
make-1.79.1: $(shell) doesn't handle '#' correctly? |
Date: |
04 Jul 2002 14:31:04 +0200 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 |
here's my makefile:
######################################################################
X := $(shell echo $${PATH})
Y := $(shell echo $${PATH#*:})
all::
@echo $X $Y
######################################################################
when I run "make", I get the following error:
makefile:2: *** unterminated call to function `shell': missing `)'. Stop.
(note: the first line runs ok). the make-info says:
[...]
The `shell' function performs the same function that backquotes
(``') perform in most shells: it does "command expansion". This means
that it takes an argument that is a shell command and returns the
output of the command.
[...]
but in e.g. bash-2.04.0(1) it is legal to say:
X=`echo ${PATH#*:}`
no error and the result in $X is what I expect.
So for me it looks like a make-bug or a documentation-bug.
did I miss something?
regards,
Schludi
--
Wolfgang Schludi
Fon: (+49)[0] 821 31 98 76-29 http://www.stb-ag.com
Fax: (+49)[0] 821 31 98 76-80
- make-1.79.1: $(shell) doesn't handle '#' correctly?,
Wolfgang Schludi <=