22638766 tcsh 6.19.0 command completion partly broken.
authorMike Sullivan <Mike.Sullivan@Oracle.COM>
Thu, 04 Feb 2016 11:16:04 -0800
changeset 5399 88010dbde9bb
parent 5398 f499dad29f21
child 5400 1199f8e91f50
22638766 tcsh 6.19.0 command completion partly broken.
components/tcsh/patches/009.completion.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/tcsh/patches/009.completion.patch	Thu Feb 04 11:16:04 2016 -0800
@@ -0,0 +1,19 @@
+this is from upstream. described by:
+
+http://mx.gw.com/pipermail/tcsh-bugs/2015-September/000978.html
+
+and fixed by:
+
+https://github.com/tcsh-org/tcsh/commit/86f1ca6000f81be5b3401a2ec102521cb612a518
+
+--- tcsh-6.19.00/tw.comp.c.orig	Wed Feb  3 14:07:50 2016
++++ tcsh-6.19.00/tw.comp.c	Wed Feb  3 14:08:18 2016
+@@ -251,7 +251,7 @@
+ tw_match(const Char *str, const Char *pat, int exact)
+ {
+     const Char *estr;
+-    int rv = exact ? Gmatch(str, pat) : Gnmatch(str, pat, &estr);
++    int rv = exact ? Gmatch(estr = str, pat) : Gnmatch(str, pat, &estr);
+ #ifdef TDEBUG
+     xprintf("G%smatch(%s, ", exact ? "" : "n", short2str(str));
+     xprintf("%s, ", short2str(pat));