diff options
| author | Jari Aalto <jari.aalto@cante.net> | 2005-12-07 14:08:12 +0000 |
|---|---|---|
| committer | Jari Aalto <jari.aalto@cante.net> | 2009-09-12 16:46:57 +0000 |
| commit | 95732b497d12c98613bb3c5db16b61f377501a59 (patch) | |
| tree | 5e1cdf79eb0407e09dca4c0ec29e11442c7d1d15 /tests/printf.tests | |
| parent | eb87367179effbe5f430236db8259006d71438b7 (diff) | |
| download | android_external_bash-95732b497d12c98613bb3c5db16b61f377501a59.tar.gz android_external_bash-95732b497d12c98613bb3c5db16b61f377501a59.tar.bz2 android_external_bash-95732b497d12c98613bb3c5db16b61f377501a59.zip | |
Imported from ../bash-3.1.tar.gz.
Diffstat (limited to 'tests/printf.tests')
| -rw-r--r-- | tests/printf.tests | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/tests/printf.tests b/tests/printf.tests index d9bc30c..9cd7302 100644 --- a/tests/printf.tests +++ b/tests/printf.tests @@ -9,6 +9,13 @@ printf -- printf "" printf -- "" +# in the future this may mean to put the output into VAR, but for +# now it is an error +# 2005-03-15 no longer an error +unset var +printf -v var "%10d" $RANDOM +echo ${#var} + # this should expand escape sequences in the format string, nothing else printf "\tone\n" @@ -196,10 +203,6 @@ printf "%d\n" 26 # happily ignore overflow conditions in strtol(3) #printf "%ld\n" 4294967296 -# in the future this may mean to put the output into VAR, but for -# now it is an error -printf -v var "%10d" $RANDOM - printf "%10" printf "ab%Mcd\n" @@ -220,6 +223,11 @@ printf '(%*b)(%*s)\n' -4 foo -4 bar format='%'`printf '%0100384d' 0`'d\n' printf $format 0 +# failures in all bash versions through bash-3.0 - undercounted characters +unset vv +printf " %s %s %s \n%n" ab cd ef vv +echo "$vv" + # this doesn't work with printf(3) on all systems #printf "%'s\n" foo |
