1# $NetBSD: cmd-errors.mk,v 1.6 2024/04/23 22:51:28 rillig Exp $ 2# 3# Demonstrate how errors in expressions affect whether the commands 4# are actually executed in compat mode. 5 6all: undefined unclosed-expression unclosed-modifier unknown-modifier end 7 8# Undefined variables in expressions are not an error. They expand to empty 9# strings. 10undefined: 11 : $@-${UNDEFINED}-eol 12 13# XXX: As of 2020-11-01, this command is executed even though it contains 14# parse errors. 15unclosed-expression: 16 : $@-${UNCLOSED 17 18# XXX: As of 2020-11-01, this command is executed even though it contains 19# parse errors. 20unclosed-modifier: 21 : $@-${UNCLOSED: 22 23# XXX: As of 2020-11-01, this command is executed even though it contains 24# parse errors. 25unknown-modifier: 26 : $@-${UNKNOWN:Z}-eol 27 28end: 29 : $@-eol 30 31# XXX: As of 2020-11-02, despite the parse errors, the exit status is 0. 32