Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] Use == in expressions instead of the deprecated =
On Thu, 8 Sep 2016 09:35:16 +0100
Peter Stephenson <p.stephenson@xxxxxxxxxxx> wrote:
> Actually, describing it as "deprecated" was always a bit of an
> exaggeration --- it's standard shell syntax that isn't going anywhere.
> There's no pressing reason not to change it in the documentation that I
> can think of, but it's not clear if it's worth looking at.
We should probably desribe it more like this, I suppose. I'm presuming
this does describe the intention here.
pws
diff --git a/Doc/Zsh/cond.yo b/Doc/Zsh/cond.yo
index 3d369fb..6fcf3bd 100644
--- a/Doc/Zsh/cond.yo
+++ b/Doc/Zsh/cond.yo
@@ -103,8 +103,8 @@ true if var(file1) and var(file2) exist and refer to the same file.
xitem(var(string) tt(=) var(pattern))
item(var(string) tt(==) var(pattern))(
true if var(string) matches var(pattern).
-The `tt(==)' form is the preferred one. The `tt(=)' form is for
-backward compatibility and should be considered obsolete.
+The `tt(==)' form is the preferred one for clarity in new shell code
+as it more closely resembles other languages.
)
item(var(string) tt(!=) var(pattern))(
true if var(string) does not match var(pattern).
Messages sorted by:
Reverse Date,
Date,
Thread,
Author