about summary refs log tree commit diff
path: root/Doc/Zsh/cond.yo
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2012-03-07 14:33:21 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2012-03-07 14:33:21 +0000
commitafa112474c981941ad95ef82cbe75479556ed23a (patch)
treef805f3595809d7767649ba46c009597536122f22 /Doc/Zsh/cond.yo
parentfa8a0e241c8ac9eb48ab9fc2d8bb3105088e0db9 (diff)
downloadzsh-afa112474c981941ad95ef82cbe75479556ed23a.tar.gz
zsh-afa112474c981941ad95ef82cbe75479556ed23a.tar.xz
zsh-afa112474c981941ad95ef82cbe75479556ed23a.zip
users/16865: note that -eq is less convient than (( ... == ... ))
Diffstat (limited to 'Doc/Zsh/cond.yo')
-rw-r--r--Doc/Zsh/cond.yo5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/Zsh/cond.yo b/Doc/Zsh/cond.yo
index 71971b4b3..9f8a7d820 100644
--- a/Doc/Zsh/cond.yo
+++ b/Doc/Zsh/cond.yo
@@ -151,6 +151,11 @@ based on ASCII value of their characters.
 )
 item(var(exp1) tt(-eq) var(exp2))(
 true if var(exp1) is numerically equal to var(exp2).
+Note that for purely numeric comparisons use of the
+tt(LPAR()LPAR())var(...)tt(RPAR()RPAR()) builtin described in
+ifzman(the section `ARITHMETIC EVALUATION')\
+ifnzman(noderef(Arithmetic Evaluation)) is more convenient than
+conditional expressions.
 )
 item(var(exp1) tt(-ne) var(exp2))(
 true if var(exp1) is numerically not equal to var(exp2).