diff options
Diffstat (limited to 'unit-tests/forloop.mk')
| -rw-r--r-- | unit-tests/forloop.mk | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/unit-tests/forloop.mk b/unit-tests/forloop.mk index 9aad7c6b998a..dd3f07ddb19a 100644 --- a/unit-tests/forloop.mk +++ b/unit-tests/forloop.mk @@ -1,4 +1,4 @@ -# $Id: forloop.mk,v 1.1.1.1 2014/08/30 18:57:18 sjg Exp $ +# $Id: forloop.mk,v 1.1.1.2 2020/05/05 00:54:40 sjg Exp $ all: for-loop @@ -33,7 +33,15 @@ X!= echo 'cfl=${cfl}' >&2; echo .for a b in ${EMPTY} X!= echo 'a=$a b=$b' >&2; echo .endfor -.endif + +# Since at least 1993, iteration stops at the first newline. +# Back then, the .newline variable didn't exist, therefore it was unlikely +# that a newline ever occured. +.for var in a${.newline}b${.newline}c +X!= echo 'newline-item=('${var:Q}')' 1>&2; echo +.endfor + +.endif # for-fail .for a b in ${LIST} ${LIST:tu} ${XTRA_LIST} X!= echo 'a=$a b=$b' >&2; echo |
