summaryrefslogtreecommitdiff
path: root/tests/printf.tests
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-04-09 16:13:32 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-04-09 16:15:01 -0700
commit2d698b6e42d8dca191ac795ef5dba3bf62496eec (patch)
treeac5e0b67043c50f49160e9fe407435706cf30444 /tests/printf.tests
parentf1250933e4a2ac09a3d0b25b3877068e12f44da5 (diff)
downloadvyatta-bash-2d698b6e42d8dca191ac795ef5dba3bf62496eec.tar.gz
vyatta-bash-2d698b6e42d8dca191ac795ef5dba3bf62496eec.zip
Integrate bash 3.2 version
This is merge of current Debian stable (Lenny) version of Bash with Vyatta changes.
Diffstat (limited to 'tests/printf.tests')
-rw-r--r--tests/printf.tests9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/printf.tests b/tests/printf.tests
index 9cd7302..60928d6 100644
--- a/tests/printf.tests
+++ b/tests/printf.tests
@@ -67,7 +67,7 @@ printf -- "--%b--\n" '\t\0101'
printf -- "--%b--\n" '\t\101'
# these should all display `A7'
-echo -e "\1017"
+echo -e "\01017"
echo -e "\x417"
printf "%b\n" '\01017'
@@ -246,3 +246,10 @@ printf '\x07e\n'
# additional backslash escapes
printf '\"\?\n'
+
+# failures with decimal precisions until after bash-3.1
+printf '%0.5d\n' 1
+
+printf '%05d\n' 1
+printf '%5d\n' 1
+printf '%0d\n' 1