diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2001-12-07 12:59:08 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2001-12-07 12:59:08 +0000 |
commit | 64b4bfe6fc8ae3e12bfdc4b5f776fa5d2cc02d24 (patch) | |
tree | c37564e424ea1c91c2bd6197fa06a97f094dc248 /Doc | |
parent | 960a7e534702b487d82b28dde99053db6f33b992 (diff) | |
download | zsh-64b4bfe6fc8ae3e12bfdc4b5f776fa5d2cc02d24.tar.gz zsh-64b4bfe6fc8ae3e12bfdc4b5f776fa5d2cc02d24.tar.xz zsh-64b4bfe6fc8ae3e12bfdc4b5f776fa5d2cc02d24.zip |
* 16310: Functions/Misc/zcalc, Doc/Zsh/contrib.yo: separate zcalc
history, handle errors in expression, document -#base option.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/Zsh/contrib.yo | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Doc/Zsh/contrib.yo b/Doc/Zsh/contrib.yo index 013a37979..654fa699c 100644 --- a/Doc/Zsh/contrib.yo +++ b/Doc/Zsh/contrib.yo @@ -828,8 +828,9 @@ Each line typed is evaluated as an expression. The prompt shows a number, which corresponds to a positional parameter where the result of that calculation is stored. For example, the result of the calculation on the line preceeded by `tt(4> )' is available as tt($4). Full command line -editing, including the history of previous calculations, is available. -To exit, enter a blank line or type `tt(q)' on its own. +editing, including the history of previous calculations, is available; the +history is saved in the file tt(~/.zcalc_history). To exit, enter a blank +line or type `tt(q)' on its own. If arguments are given to tt(zcalc) on start up, they are used to prime the first few positional parameters. A visual indication of this is given when @@ -845,6 +846,10 @@ indication of the base, or `tt([##16])' just to display the raw number in the given base. Bases themselves are always specified in decimal. `tt([#])' restores the normal output format. +The output base can be initialised by passing the option `tt(-#)var(base)', +for example `tt(zcalc -#16)' (the `tt(#)' may have to be quoted, depending +on the globbing options set). + The prompt is configurable via the parameter tt(ZCALCPROMPT), which undergoes standard prompt expansion. The index of the current entry is stored locally in the first element of the array tt(psvar), which can be |