summaryrefslogtreecommitdiff
path: root/tests/printf.tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests/printf.tests')
-rw-r--r--tests/printf.tests4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/printf.tests b/tests/printf.tests
index e72f5c8b..9dbac6f0 100644
--- a/tests/printf.tests
+++ b/tests/printf.tests
@@ -308,6 +308,9 @@ shopt -s nullglob extglob
echo "x$(printf "%b" @(hugo))x"
printf -v var "%b" @(hugo); echo "x${var}x"
+# make sure that missing arguments are always handled like the empty string
+printf "<%3s><%3b>\n"
+
# tests variable assignment with -v
${THIS_SH} ./printf1.sub
@@ -316,4 +319,3 @@ ${THIS_SH} ./printf2.sub
${THIS_SH} ./printf3.sub
${THIS_SH} ./printf4.sub
-