diff options
Diffstat (limited to 'debian/patches/0006-isident-false-positive.diff')
-rw-r--r-- | debian/patches/0006-isident-false-positive.diff | 29 |
1 files changed, 29 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] |