[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: make-1.79.1: $(shell) doesn't handle '#' correctly?
From: |
Hans-Bernhard Broeker |
Subject: |
Re: make-1.79.1: $(shell) doesn't handle '#' correctly? |
Date: |
4 Jul 2002 13:37:26 GMT |
Wolfgang Schludi <address@hidden> wrote:
> here's my makefile:
> ######################################################################
> X := $(shell echo $${PATH})
> Y := $(shell echo $${PATH#*:})
I could be very far off here, but since # is a comment character in
Makefiles, I strongly doubt you can just use it in the middle of an
expression like this. Did you try escaping it, like you did by
doubling the $ inside the $(shell )?
This would mean that Y never actually got set to the value you tried
to set it to. In particular the closing ) isn't really present, so
the shell is correct in complaining about it.
For further experiments:
make -p
to see the actual variable values, or
make SHELL="/bin/sh -x"
to have the shell report the actual commands it tries to execute.
--
Hans-Bernhard Broeker (address@hidden)
Even if all the snow were burnt, ashes would remain.