xargs: fix -e default to match newer GNU xargs, add SUS mandated -E.
closes bug 4414
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user