summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2016-11-05 00:27:47 +0100
committerOliver Kiddle <opk@zsh.org>2016-11-05 00:27:47 +0100
commit4b41e33cbcf8027b53ecae4467dc9232becb0420 (patch)
tree61697eb6efad6cec81919f761d9238037c4c154b /Test
parentfe023d8bac1912e96a4d982ba84a0621fde616d2 (diff)
downloadzsh-4b41e33cbcf8027b53ecae4467dc9232becb0420.tar.gz
zsh-4b41e33cbcf8027b53ecae4467dc9232becb0420.tar.xz
zsh-4b41e33cbcf8027b53ecae4467dc9232becb0420.zip
39389: when printf -v is used with an array use separate elements each time the format is reused
Diffstat (limited to 'Test')
-rw-r--r--Test/B03print.ztst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Test/B03print.ztst b/Test/B03print.ztst
index a4431cbc8..6ee2a09c6 100644
--- a/Test/B03print.ztst
+++ b/Test/B03print.ztst
@@ -310,3 +310,9 @@
 0:print and printf into a variable
 >typeset -g foo='once more'
 >typeset -g foo=$'into\C-@the-breach\C-@-'
+
+ typeset -a foo
+ print -f '%2$d %4s' -v foo one 1 two 2 three 3
+ typeset -p foo
+0:printf into an array variable
+>typeset -a foo=( '1  one' '2  two' '3 three' )