diff options
author | Elliott Hughes <enh@google.com> | 2017-12-25 21:24:57 -0800 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2017-12-26 20:45:14 -0600 |
commit | 70a6c55499eabf1229dfb0b49f08b366cbaa7896 (patch) | |
tree | 48ba3af3e48738c7dfe10b0d25b8475e715a1ea2 /tests | |
parent | 4335501bf3269ac86b7bfdf236aa763d380327e2 (diff) | |
download | toybox-70a6c55499eabf1229dfb0b49f08b366cbaa7896.tar.gz |
Fix xargs -0 with -n.
Also make -0 and -E mutually exclusive (rather than just ignore -E
with -0).
Bug: https://github.com/landley/toybox/issues/78
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/xargs.test | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/xargs.test b/tests/xargs.test index 966bc5db..407817cc 100755 --- a/tests/xargs.test +++ b/tests/xargs.test @@ -24,6 +24,9 @@ testing "command -opt" "xargs -n2 ls -1" "one\ntwo\nthree\n" "" \ "one two three" rm one two three +testing "-0 -n1" "printf 'a\0b\0c\0d\0e\0f' | xargs -0 -n1 echo _" "_ a\n_ b\n_ c\n_ d\n_ e\n_ f\n" "" "" +testing "-0 -n2" "printf 'a\0b\0c\0d\0e\0f' | xargs -0 -n2 echo _" "_ a b\n_ c d\n_ e f\n" "" "" + #testing "-n exact match" #testing "-s exact match" #testing "-s 0" |