1 # $NetBSD: varmod-to-many-words.mk,v 1.3 2020/12/20 23:29:50 rillig Exp $ 2 # 3 # Tests for the :tw modifier, which treats the variable as many words, 4 # to undo a previous :tW modifier. 5 6 SENTENCE= The quick brown fox jumps over the lazy brown dog. 7 8 .if ${SENTENCE:tw:[#]} != 10 9 . error 10 .endif 11 .if ${SENTENCE:tW:[#]} != 1 12 . error 13 .endif 14 15 # Protect against accidental freeing of the variable value. 16 .if ${SENTENCE} != "The quick brown fox jumps over the lazy brown dog." 17 . error 18 .endif 19 20 all: 21 @:; 22