HardenedBSD/usr.bin/make
Marcel Moolenaar 7da1dd01e6 Change the handling of non-anchored global substitutions of the empty
string from a silent implicit non-global substitution to a non-silent
explicit fatal error. Archored substitutions are those containing '^'
or '$'.
The problem with changing the substitution to prevent an infinite
number of matches is that it doesn't provide the necessary feedback
to the user that there's a bug in the/a makefile. Reporting the bug
without making the condition fatal makes the feedback mostly useless
due to the way that make fails to prefix the error with program name,
makefile file name and line number information.
Note that global substitutions of the empty string anchored with '^'
(start of string) or '$' (end of string) do not cause an infinite
number of matches and are therefore not reported and hence are non-
fatal.

Suggested by: bde
Tested with: buildworld
2003-01-15 22:36:15 +00:00
..
lst.lib
PSD.doc
arch.c
buf.c
buf.h
compat.c
cond.c
config.h
dir.c
dir.h
for.c
hash.c
hash.h
job.c
job.h
list.h
lst.h
main.c
make.1
make.c
make.h
Makefile
Makefile.dist
nonints.h
parse.c
pathnames.h
sprite.h
str.c
suff.c
targ.c
util.c
var_modify.c
var.c
var.h