diff options
author | nia <nia@pkgsrc.org> | 2020-05-24 05:35:51 +0000 |
---|---|---|
committer | nia <nia@pkgsrc.org> | 2020-05-24 05:35:51 +0000 |
commit | 8c218dc01b376e7a560d2b7fcbacca532b75fe4b (patch) | |
tree | 934e95ccea73f17c420a7617a820bc6a2596e583 /devel/bmake/files/unit-tests/forloop.mk | |
parent | 41f4d684ea949e703f7e4cdb02fffeb278231228 (diff) | |
download | pkgsrc-BMAKE.tar.gz |
Import bmake-BMAKE
Diffstat (limited to 'devel/bmake/files/unit-tests/forloop.mk')
-rw-r--r-- | devel/bmake/files/unit-tests/forloop.mk | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/devel/bmake/files/unit-tests/forloop.mk b/devel/bmake/files/unit-tests/forloop.mk index ae693438b94..985ccaf964b 100644 --- a/devel/bmake/files/unit-tests/forloop.mk +++ b/devel/bmake/files/unit-tests/forloop.mk @@ -1,4 +1,4 @@ -# $Id: forloop.mk,v 1.1.1.1 2015/05/19 21:36:45 joerg Exp $ +# $Id: forloop.mk,v 1.1.1.2 2020/05/24 05:35:53 nia 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 |