diff options
author | Richard Russon <rich@flatcap.org> | 2015-09-26 14:22:26 +0100 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2016-01-13 10:59:55 +0000 |
commit | bc94551f63cfc4c05a56628dfcb386707d9e98cb (patch) | |
tree | 8e22511edca165d3603b13762ff2063801543c27 /tests/misc/tail.pl | |
parent | b2eadd109c3a508011705761dfe24a35180d925d (diff) | |
download | coreutils-bc94551f63cfc4c05a56628dfcb386707d9e98cb.tar.xz |
head,tail: add the -z,--zero-terminated option
* doc/coreutils.texi: Reference the option description.
* src/head.c: Parameterize the delimiter character.
* src/tail.c: Likewise.
* tests/misc/head.pl: Add test case.
* tests/misc/tail.pl: Likewise.
* NEWS: Mention the new feature.
Diffstat (limited to 'tests/misc/tail.pl')
-rwxr-xr-x | tests/misc/tail.pl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/misc/tail.pl b/tests/misc/tail.pl index c23102fe8..0d9bc4834 100755 --- a/tests/misc/tail.pl +++ b/tests/misc/tail.pl @@ -101,6 +101,10 @@ my @tv = ( # With textutils-1.22, this failed. ['f-pipe-1', '-f -n 1', "a\nb\n", "b\n", 0], + +# --zero-terminated +['zero-1', '-z -n 1', "x\0y", "y", 0], +['zero-2', '-z -n 2', "x\0y", "x\0y", 0], ); my @Tests; |