xargs: fix -e default to match newer GNU xargs, add SUS mandated -E.

closes bug 4414
This commit is contained in:
Denis Vlasenko
2008-08-04 21:30:55 +00:00
parent 855ff6f503
commit 82ad032e26
2 changed files with 29 additions and 17 deletions

View File

@@ -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