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