summaryrefslogtreecommitdiffhomepage
path: root/testsuite
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2020-09-30 00:00:43 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2020-09-30 00:00:43 +0200
commitbd202a5ec15b82ba9562cdd81157e703349d8459 (patch)
tree6ecc199048004f741144bbbf9c5b3561f6161d57 /testsuite
parentd4dd48f2948b006f4ccb7cc2b603fb3d00f90685 (diff)
xargs: fix -I SUBSTR behaviour
function old new delta process_stdin_with_replace 165 204 +39 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/xargs.tests8
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/xargs.tests b/testsuite/xargs.tests
index 159f1ff69..e7c7c4b3d 100755
--- a/testsuite/xargs.tests
+++ b/testsuite/xargs.tests
@@ -61,4 +61,12 @@ testing "xargs -n2" \
SKIP=
+optional FEATURE_XARGS_SUPPORT_QUOTES
+testing "xargs -I skips empty lines and leading whitespace" \
+ "xargs -I% echo '[%]'" \
+ "[2]\n[4]\n[6 6 ]\n[7]\n" \
+ "" " \n2\n\n4\n\n 6 6 \n \v \t 7\n\t\n\v\n"
+
+SKIP=
+
exit $FAILCOUNT