summaryrefslogtreecommitdiff
path: root/testsuite/xargs.tests
diff options
context:
space:
mode:
authorDenis Vlasenko2008-08-04 21:30:55 +0000
committerDenis Vlasenko2008-08-04 21:30:55 +0000
commit82ad032e263de5d69a70cc9b169aab393f5a2b50 (patch)
tree0a066bd8a2408974ed0b5acbacb47493ab08b243 /testsuite/xargs.tests
parent855ff6f503ee50fad3eb6fa30e2b02f53f32d63d (diff)
downloadbusybox-82ad032e263de5d69a70cc9b169aab393f5a2b50.zip
busybox-82ad032e263de5d69a70cc9b169aab393f5a2b50.tar.gz
xargs: fix -e default to match newer GNU xargs, add SUS mandated -E.
closes bug 4414
Diffstat (limited to 'testsuite/xargs.tests')
-rwxr-xr-xtestsuite/xargs.tests14
1 files changed, 12 insertions, 2 deletions
diff --git a/testsuite/xargs.tests b/testsuite/xargs.tests
index e041d59..3652449 100755
--- a/testsuite/xargs.tests
+++ b/testsuite/xargs.tests
@@ -6,14 +6,24 @@
# testing "test name" "command" "expected result" "file input" "stdin"
-testing "xargs stops on underscore" \
- "xargs" \
+testing "xargs -E _ stops on underscore" \
+ "xargs -E _" \
"a\n" \
"" "a\n_\nb\n"
+testing "xargs -E ''" \
+ "xargs -E ''" \
+ "a _ b\n" \
+ "" "a\n_\nb\n"
+
testing "xargs -e without param" \
"xargs -e" \
"a _ b\n" \
"" "a\n_\nb\n"
+testing "xargs does not stop on underscore ('new' GNU behavior)" \
+ "xargs" \
+ "a _ b\n" \
+ "" "a\n_\nb\n"
+
exit $FAILCOUNT