diff options
author | Kevin Ballard <kevin@sb.org> | 2014-09-21 19:18:56 -0700 |
---|---|---|
committer | Kevin Ballard <kevin@sb.org> | 2014-09-21 19:27:26 -0700 |
commit | 8f8c4cdd176fda4d93a2d1d4b0ae6321d5706e5f (patch) | |
tree | 68c2f6d4eb2bbd7a4b975b7901cc0db95f83b740 /tests/read.out | |
parent | f889ad0fda9bf8d1f354cad37d508e0c4205af48 (diff) |
Implement new `read --null` flag
The `--null` flag to `read` makes it split incoming lines on NUL instead
of newlines. This is intended for processing the output of a command
that uses NUL separators (such as `find -print0`).
Fixes #1694.
Diffstat (limited to 'tests/read.out')
-rw-r--r-- | tests/read.out | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/read.out b/tests/read.out index 0de98831..d8cf948d 100644 --- a/tests/read.out +++ b/tests/read.out @@ -16,6 +16,7 @@ two 1 '' 1 '' 1 '' 1 'test' 1 '' 1 '' +1 'foo' 1 'bar' 1 ' baz' 1 'hello' 1 'h' 1 'ello' @@ -42,3 +43,14 @@ test tes tin t + +# read -z tests +testing +test ing +newline + +1 'test' 1 'ing' +1 'test' 1 '' +1 'foo' 1 'bar' +2 'foo' 'bar' +2 'baz' 'quux' |