From 82ad032e263de5d69a70cc9b169aab393f5a2b50 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Mon, 4 Aug 2008 21:30:55 +0000 Subject: xargs: fix -e default to match newer GNU xargs, add SUS mandated -E. closes bug 4414 --- testsuite/xargs.tests | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'testsuite/xargs.tests') 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 @@ # 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 -- cgit v1.2.3