01cc1d54b4
Mark the parameter as constant since it is not modified. Remove tests for '\n' since these can never succeed. newenv can never be NULL since neither of bmake_malloc or bmake_realloc returns NULL. Improve variable names: vlist was too unexpressive. Add debug logging since unexporting variables is an uncommon operation that directly affects the observable environment of the child processes. Fix CRLF line endings in a few unit tests.
18 lines
592 B
Makefile
18 lines
592 B
Makefile
# $NetBSD: lint.mk,v 1.2 2020/08/08 13:00:07 rillig Exp $
|
|
#
|
|
# Demonstrates stricter checks that are only enabled in the lint mode,
|
|
# using the -dL option.
|
|
|
|
# Ouch: as of 2020-08-03, make exits successfully even though the error
|
|
# message has been issued as PARSE_FATAL.
|
|
|
|
# Ouch: as of 2020-08-03, the variable is malformed and parsing stops
|
|
# for a moment, but is continued after the wrongly-guessed end of the
|
|
# variable, which echoes "y@:Q}".
|
|
|
|
all: mod-loop-varname
|
|
|
|
mod-loop-varname:
|
|
@echo ${VAR:Uvalue:@${:Ubar:S,b,v,}@x${var}y@:Q}
|
|
@echo ${VAR:Uvalue:@!@x$!y@:Q} # surprisingly allowed
|