components/tcsh/patches/009.completion.patch
author pkidd <patrick.kidd@oracle.com>
Fri, 29 Apr 2016 08:21:43 -0700
branchs11u3-sru
changeset 5883 e4ca97d40c81
parent 5725 144507f0fa50
permissions -rw-r--r--
Added tag 0.175.3.8.0.4.0, S11.3SRU8.4 for changeset c21aeffbe742

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));