bug-make
[Top][All Lists]
Advanced

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

[bug #47150] Silently fails on mistyped function names


From: Paul D. Smith
Subject: [bug #47150] Silently fails on mistyped function names
Date: Sat, 27 Feb 2016 21:26:10 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:44.0) Gecko/20100101 Firefox/44.0

Update of bug #47150 (project make):

              Item Group:                     Bug => Enhancement            

    _______________________________________________________

Follow-up Comment #1:

Historically, GNU make has not disallowed whitespace to appear in variable
names.  So, when you write "$(dirname FOO)" make cannot tell the difference
between a mis-typed function name and an honest attempt to expand a variable
named literally "dirname FOO".

As you no doubt are aware, there's no warning or error provided when you
attempt to expand a variable which doesn't exist.

This is why you don't get any notification when you mistype a function name. 
You can of course enable the "--warn-undefined-variables" flag and this will
cause GNU make to complain about any attempt to expand _any_ undefined
variable, including things you intended to be functions but were not.

Over the last few releases I've been deprecating the ability to create
variable names containing whitespace.  Once that is fully in effect, GNU make
can treat a reference containing whitespace to be an attempt to use an
undefined function and generate a proper warning for it.

I'm resetting this to be an enhancement request.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?47150>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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