diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2022-04-23 18:22:53 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2022-04-23 18:22:53 -0700 |
commit | cf6bf82e912743716160c72702b1b6a6b63c0770 (patch) | |
tree | 04edd3595c3dd7ed552b345ad0e730f1d0004ebf /testcases-iter | |
parent | b700e8e335f9e6ebf31457262db323273e339afa (diff) | |
download | cppawk-cf6bf82e912743716160c72702b1b6a6b63c0770.tar.gz cppawk-cf6bf82e912743716160c72702b1b6a6b63c0770.tar.bz2 cppawk-cf6bf82e912743716160c72702b1b6a6b63c0770.zip |
loop: new records clause.
Diffstat (limited to 'testcases-iter')
-rw-r--r-- | testcases-iter | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/testcases-iter b/testcases-iter index 54153d8..4d00782 100644 --- a/testcases-iter +++ b/testcases-iter @@ -457,3 +457,18 @@ BEGIN { }' : 6 5 0 +-- +22: +$cppawk ' +#include <iter.h> + +BEGIN { + OFS=":" + loop (records("testdir/data")) { + $1=$1 + print + } +}' +: +a:b:c:d +e:f:g:h |