aboutsummaryrefslogtreecommitdiff
path: root/testsuite/xargs.tests
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/xargs.tests')
-rwxr-xr-xtestsuite/xargs.tests9
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/xargs.tests b/testsuite/xargs.tests
index 2d0a201b7..855b33bc2 100755
--- a/testsuite/xargs.tests
+++ b/testsuite/xargs.tests
@@ -41,4 +41,13 @@ testing "xargs -sNUM test 2" \
41 "echo 1 2 3 4 5 6 7 8 9 0\n""echo 1 2 3 4 5 6 7 8 9\n""echo 1 00\n" \ 41 "echo 1 2 3 4 5 6 7 8 9 0\n""echo 1 2 3 4 5 6 7 8 9\n""echo 1 00\n" \
42 "" "2 3 4 5 6 7 8 9 0 2 3 4 5 6 7 8 9 00\n" 42 "" "2 3 4 5 6 7 8 9 0 2 3 4 5 6 7 8 9 00\n"
43 43
44# see that we don't get "argument line too long",
45# but do see the last word, 99999, instead
46optional FEATURE_XARGS_SUPPORT_QUOTES
47testing "xargs argument line too long" \
48 "seq 10000 99999 | sed -e 's/^/\"/' -e 's/$/\"/' | xargs echo | grep -o 99999; echo \$?" \
49 "99999\n0\n" \
50 "" ""
51SKIP=
52
44exit $FAILCOUNT 53exit $FAILCOUNT