diff options
author | Oliver Kiddle <opk@users.sourceforge.net> | 2001-10-23 11:22:33 +0000 |
---|---|---|
committer | Oliver Kiddle <opk@users.sourceforge.net> | 2001-10-23 11:22:33 +0000 |
commit | c1441714b523d9a390165846632dc18ea10ba91b (patch) | |
tree | 03692c52da81708386d7358f5dcb67826c2a4613 /Test | |
parent | acd69a7ba3eaafe44799d78c49eeeaefb49baa8d (diff) | |
download | zsh-c1441714b523d9a390165846632dc18ea10ba91b.tar.gz zsh-c1441714b523d9a390165846632dc18ea10ba91b.tar.xz zsh-c1441714b523d9a390165846632dc18ea10ba91b.zip |
zero %n value when reusing printf format (16122)
Diffstat (limited to 'Test')
-rw-r--r-- | Test/B03print.ztst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Test/B03print.ztst b/Test/B03print.ztst index 3968faec3..1aa6d2051 100644 --- a/Test/B03print.ztst +++ b/Test/B03print.ztst @@ -144,6 +144,11 @@ >two b:0x2% >three c:0x3% + printf '%d%n' 123 val val val > /dev/null + printf '%d\n' val +0:%n count zeroed on format reuse +>1 + # this should fill spec string with '%0+- #*.*d\0' - 11 characters printf '%1$0+- #-08.5dx\n' 123 0:maximal length format specification |