mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-27 16:50:58 +01:00
37467: add "print -v var" / "printf -v var"
This commit is contained in:
parent
4f5d7b7b37
commit
15b73ea99b
4 changed files with 47 additions and 11 deletions
|
|
@ -301,3 +301,12 @@
|
|||
>one two three four
|
||||
> one two three four
|
||||
> one two three four
|
||||
|
||||
unset foo
|
||||
print -v foo once more
|
||||
print -r -- $foo
|
||||
printf -v foo "%s-" into the breach
|
||||
print -r -- $foo
|
||||
0:print and printf into a variable
|
||||
>once more
|
||||
>into-the-breach-
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue