diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-08-04 21:30:55 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-08-04 21:30:55 +0000 |
commit | 82ad032e263de5d69a70cc9b169aab393f5a2b50 (patch) | |
tree | 0a066bd8a2408974ed0b5acbacb47493ab08b243 /testsuite | |
parent | 855ff6f503ee50fad3eb6fa30e2b02f53f32d63d (diff) | |
download | busybox-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-x | testsuite/xargs.tests | 14 |
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 | ||
9 | testing "xargs stops on underscore" \ | 9 | testing "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 | ||
14 | testing "xargs -E ''" \ | ||
15 | "xargs -E ''" \ | ||
16 | "a _ b\n" \ | ||
17 | "" "a\n_\nb\n" | ||
18 | |||
14 | testing "xargs -e without param" \ | 19 | testing "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 | ||
24 | testing "xargs does not stop on underscore ('new' GNU behavior)" \ | ||
25 | "xargs" \ | ||
26 | "a _ b\n" \ | ||
27 | "" "a\n_\nb\n" | ||
28 | |||
19 | exit $FAILCOUNT | 29 | exit $FAILCOUNT |