minix/commands/bmake/unit-tests/ternary

9 lines
206 B
Text
Raw Normal View History

2010-02-04 17:52:54 +01:00
all:
@for x in "" A= A=42; do ${.MAKE} -f ${MAKEFILE} show $$x; done
show:
@echo "The answer is ${A:?known:unknown}"
@echo "The answer is ${A:?$A:unknown}"
@echo "The answer is ${empty(A):?empty:$A}"