summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/patches/0006-isident-false-positive.diff29
-rw-r--r--debian/patches/series1
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