diff options
author | Peter Stephenson <pws@zsh.org> | 2016-07-04 12:08:14 +0100 |
---|---|---|
committer | Peter Stephenson <pws@zsh.org> | 2016-07-04 12:08:14 +0100 |
commit | a7d5d239e6ab729515083a88cfaf955e078c1685 (patch) | |
tree | a2360a93c901a994fdd7bde238cc1d17737d1484 /Doc/Zsh | |
parent | a73ae70e8217d7163aecdbdad4d8af08eced8a55 (diff) | |
download | zsh-a7d5d239e6ab729515083a88cfaf955e078c1685.tar.gz zsh-a7d5d239e6ab729515083a88cfaf955e078c1685.tar.xz zsh-a7d5d239e6ab729515083a88cfaf955e078c1685.zip |
38783: zcalc tweaks for RPN mode.
Make it more straightforward to exchange variables with stack.
Diffstat (limited to 'Doc/Zsh')
-rw-r--r-- | Doc/Zsh/contrib.yo | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/Doc/Zsh/contrib.yo b/Doc/Zsh/contrib.yo index f1208e843..d4a453849 100644 --- a/Doc/Zsh/contrib.yo +++ b/Doc/Zsh/contrib.yo @@ -3829,16 +3829,24 @@ the stack to be duplicated onto the stack. ) item(tt(pop))( The pseudo-function tt(pop) causes the most recent element of -the stack to be popped. A `tt(<)' on its own has the same effect. +the stack to be popped. A `tt(>)' on its own has the same effect. +) +item(tt(>)var(ident))( +The expression tt(>) followed (with no space) by a shell identifier +causes the most recent element of the stack to be popped and +assigned to the variable with that name. The variable is +local to the tt(zcalc) function. ) item(tt(<)var(ident))( The expression tt(<) followed (with no space) by a shell identifier -causes the most recent element of the stack to be popped and -assigned to the identifier. +causes the value of the variable with that name to be pushed +onto the stack. var(ident) may be an integer, in which +case the previous result with that number (as shown before +the tt(>) in th standard standard tt(zcalc) prompt) is put on the stack. ) item(Exchange: tt(xy))( The pseudo-function tt(xy) causes the most recent two elements of -the stack to be exchanged. +the stack to be exchanged. `tt(<>)' has the same effect. ) enditem() |