bug-make
[Top][All Lists]
Advanced

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

[bug #64818] patsubst shorthand documentation bug?


From: Parminder Singh
Subject: [bug #64818] patsubst shorthand documentation bug?
Date: Thu, 26 Oct 2023 11:02:47 -0400 (EDT)

Follow-up Comment #3, bug #64818 (project make):

I rephrase my doubt, according to what the documentation says, if I run the
following code with the 'make test' command the variables 'FOO' and 'FOO2'
should have the same value


STR = HelloWorld

FOO = $(STR:World=Earth)
FOO2 = $(patsubst World,Earth,$(STR))

test: 
        @echo "$(FOO)"
        @echo "$(FOO2)"


but this doesn't seem to be the case, the output I get is:

HelloEarth
HelloWorld




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?64818>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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