about summary refs log tree commit diff
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
parentfa8a0e241c8ac9eb48ab9fc2d8bb3105088e0db9 (diff)
downloadzsh-afa112474c981941ad95ef82cbe75479556ed23a.tar.gz
zsh-afa112474c981941ad95ef82cbe75479556ed23a.tar.xz
zsh-afa112474c981941ad95ef82cbe75479556ed23a.zip
users/16865: note that -eq is less convient than (( ... == ... ))
-rw-r--r--ChangeLog8
-rw-r--r--Doc/Zsh/cond.yo5
2 files changed, 12 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index c8fbe8365..f40bdee55 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-03-07  Peter Stephenson  <pws@csr.com>
+
+	* users/16865: Doc/Zsh/cond.yo: note that -eq and friends are
+	less convenient for purely numeric work than conditional
+	expressions.
+
 2012-03-06  Peter Stephenson  <p.w.stephenson@ntlworld.com>
 
 	* Alexey: 30322: Completion/Unix/Command/_xmlsoft: accept more
@@ -16088,5 +16094,5 @@
 
 *****************************************************
 * This is used by the shell to define $ZSH_PATCHLEVEL
-* $Revision: 1.5606 $
+* $Revision: 1.5607 $
 *****************************************************
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).