diff options
author | Frank Terbeck <ft@bewatermyfriend.org> | 2011-03-09 10:22:01 +0100 |
---|---|---|
committer | Frank Terbeck <ft@bewatermyfriend.org> | 2011-03-09 10:22:01 +0100 |
commit | d6e29c2b87d8a7149e6ec28f8d0255c86cb7d2bf (patch) | |
tree | 52d7f38063ac709c889d4c21977cdfe54fca49f0 | |
parent | d7d2a63e2ea7e885a5a4ec6121126d9973ce92f7 (diff) | |
download | zsh-d6e29c2b87d8a7149e6ec28f8d0255c86cb7d2bf.tar.gz zsh-d6e29c2b87d8a7149e6ec28f8d0255c86cb7d2bf.zip |
Fix for false isident() behaviour
-rw-r--r-- | debian/patches/0006-isident-false-positive.diff | 29 | ||||
-rw-r--r-- | debian/patches/series | 1 |
2 files changed, 30 insertions, 0 deletions
diff --git a/debian/patches/0006-isident-false-positive.diff b/debian/patches/0006-isident-false-positive.diff new file mode 100644 index 000000000..f43843b76 --- /dev/null +++ b/debian/patches/0006-isident-false-positive.diff @@ -0,0 +1,29 @@ +False positive fix from upstream: + <http://www.zsh.org/mla/workers/2011/msg00069.html> + <http://www.zsh.org/mla/workers/2011/msg00073.html> + +Index: pkg-zsh/Src/params.c +=================================================================== +--- pkg-zsh.orig/Src/params.c 2011-03-09 10:15:02.000000000 +0100 ++++ pkg-zsh/Src/params.c 2011-03-09 10:15:10.000000000 +0100 +@@ -1009,6 +1009,8 @@ + * definitely not a valid identifier. */ + if (!*ss) + return 1; ++ if (s == ss) ++ return 0; + if (*ss != '[') + return 0; + +Index: pkg-zsh/Test/D04parameter.ztst +=================================================================== +--- pkg-zsh.orig/Test/D04parameter.ztst 2011-03-09 10:15:02.000000000 +0100 ++++ pkg-zsh/Test/D04parameter.ztst 2011-03-09 10:15:10.000000000 +0100 +@@ -1401,3 +1401,7 @@ + >a + >b + >c ++ ++ printf "%n" '[0]' ++1:Regression test for identifier test ++?(eval):1: not an identifier: [0] diff --git a/debian/patches/series b/debian/patches/series index 01e95c85a..809b10ca0 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -4,3 +4,4 @@ 0003-regex-match-crash-fix.diff 0004-support-yodl3.diff 0005-lexer-fix.diff +0006-isident-false-positive.diff |