about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2007-05-29 09:27:43 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2007-05-29 09:27:43 +0000
commita755310d20373ec93a81f2b0cedac9c7369168db (patch)
tree46d4d8d07e288a1ebf48d72ac25468081d578571
parent73ecf47a4f157080d11c164214d5d2f9a3a58a86 (diff)
downloadzsh-a755310d20373ec93a81f2b0cedac9c7369168db.tar.gz
zsh-a755310d20373ec93a81f2b0cedac9c7369168db.tar.xz
zsh-a755310d20373ec93a81f2b0cedac9c7369168db.zip
Phil Pennock: 23480: typo
Also typo in mod_stat.yo
-rw-r--r--ChangeLog6
-rw-r--r--Doc/Zsh/mod_stat.yo2
-rw-r--r--Src/parse.c2
3 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 427d8ab7d..538c0f0bb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-05-29  Peter Stephenson  <pws@csr.com>
+
+	* unposted: Doc/Zsh/mod_stat.yo: typo.
+
+	* Phil Pennock: 23480: Src/parse.c: typo in =~ handling.
+
 2007-05-28  Peter Stephenson  <p.w.stephenson@ntlworld.com>
 
 	* Not posted but see 23479:Completion/Unix/Command/_chmod,
diff --git a/Doc/Zsh/mod_stat.yo b/Doc/Zsh/mod_stat.yo
index e0fc15abd..eeb196f64 100644
--- a/Doc/Zsh/mod_stat.yo
+++ b/Doc/Zsh/mod_stat.yo
@@ -11,7 +11,7 @@ cindex(files, examining)
 xitem(tt(zstat) [ tt(-gnNolLtTrs) ] [ tt(-f) var(fd) ] \
     [ tt(-H) var(hash) ] [ tt(-A) var(array) ] \
     [ tt(-F) var(fmt) ] [ tt(PLUS())var(element) ] [ var(file) ... ])
-itme(tt(stat) var(...))(
+item(tt(stat) var(...))(
 The command acts as a front end to the tt(stat) system call (see
 manref(stat)(2)).  The same command is provided with two names; as
 the name tt(stat) is often used by an external command it is recommended
diff --git a/Src/parse.c b/Src/parse.c
index dd38bfdce..4fc592075 100644
--- a/Src/parse.c
+++ b/Src/parse.c
@@ -2125,7 +2125,7 @@ par_cond_triple(char *a, char *b, char *c)
 	ecstr(c);
 	ecadd(ecnpats++);
     } else if ((b[0] == Equals || b[0] == '=') &&
-               (b[1] == '~' || b[1] == Tilde) && ~b[2]) {
+               (b[1] == '~' || b[1] == Tilde) && !b[2]) {
 	ecadd(WCB_COND(COND_REGEX, 0));
 	ecstr(a);
 	ecstr(c);