aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-08-04 21:30:55 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-08-04 21:30:55 +0000
commit82ad032e263de5d69a70cc9b169aab393f5a2b50 (patch)
tree0a066bd8a2408974ed0b5acbacb47493ab08b243 /testsuite
parent855ff6f503ee50fad3eb6fa30e2b02f53f32d63d (diff)
downloadbusybox-w32-82ad032e263de5d69a70cc9b169aab393f5a2b50.tar.gz
busybox-w32-82ad032e263de5d69a70cc9b169aab393f5a2b50.tar.bz2
busybox-w32-82ad032e263de5d69a70cc9b169aab393f5a2b50.zip
xargs: fix -e default to match newer GNU xargs, add SUS mandated -E.
closes bug 4414
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/xargs.tests14
1 files changed, 12 insertions, 2 deletions
diff --git a/testsuite/xargs.tests b/testsuite/xargs.tests
index e041d592e..36524499e 100755
--- a/testsuite/xargs.tests
+++ b/testsuite/xargs.tests
@@ -6,14 +6,24 @@
6 6
7# testing "test name" "command" "expected result" "file input" "stdin" 7# testing "test name" "command" "expected result" "file input" "stdin"
8 8
9testing "xargs stops on underscore" \ 9testing "xargs -E _ stops on underscore" \
10 "xargs" \ 10 "xargs -E _" \
11 "a\n" \ 11 "a\n" \
12 "" "a\n_\nb\n" 12 "" "a\n_\nb\n"
13 13
14testing "xargs -E ''" \
15 "xargs -E ''" \
16 "a _ b\n" \
17 "" "a\n_\nb\n"
18
14testing "xargs -e without param" \ 19testing "xargs -e without param" \
15 "xargs -e" \ 20 "xargs -e" \
16 "a _ b\n" \ 21 "a _ b\n" \
17 "" "a\n_\nb\n" 22 "" "a\n_\nb\n"
18 23
24testing "xargs does not stop on underscore ('new' GNU behavior)" \
25 "xargs" \
26 "a _ b\n" \
27 "" "a\n_\nb\n"
28
19exit $FAILCOUNT 29exit $FAILCOUNT