about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2015-06-07 23:07:26 +0200
committerOliver Kiddle <opk@zsh.org>2015-06-07 23:07:26 +0200
commitac26fafa03c30e8c79e4bd70bdbb68d025643ee7 (patch)
tree02c2080f79f7ec2e5b7f6048020e9e4d95a2bc3e /Test
parenta253ada08b43fafa25d6af2cc3c0bf248df50970 (diff)
downloadzsh-ac26fafa03c30e8c79e4bd70bdbb68d025643ee7.tar.gz
zsh-ac26fafa03c30e8c79e4bd70bdbb68d025643ee7.tar.xz
zsh-ac26fafa03c30e8c79e4bd70bdbb68d025643ee7.zip
35412: fix for - flag when formating strings with printf
Diffstat (limited to 'Test')
-rw-r--r--Test/B03print.ztst8
1 files changed, 6 insertions, 2 deletions
diff --git a/Test/B03print.ztst b/Test/B03print.ztst
index 54d6350cf..eb79c4ddb 100644
--- a/Test/B03print.ztst
+++ b/Test/B03print.ztst
@@ -169,11 +169,15 @@
 0:%n count zeroed on format reuse
 >1
 
-# this may fill spec string with '%0+- #*.*lld\0' - 13 characters
- printf '%1$0+- #-08.5dx\n' 123
+# this may fill spec string with '%0'+- #*.*lld\0' - 14 characters
+ printf '%1$0'"'+- #-08.5dx\n" 123
 0:maximal length format specification
 >+00123  x
 
+ printf "x:%-20s:y\n" fubar
+0:left-justification of string
+>x:fubar               :y
+
  printf '%*smorning\n' -5 good
 0:negative width specified
 >good morning