equal
deleted
inserted
replaced
|
1 this is from upstream. described by: |
|
2 |
|
3 http://mx.gw.com/pipermail/tcsh-bugs/2015-September/000978.html |
|
4 |
|
5 and fixed by: |
|
6 |
|
7 https://github.com/tcsh-org/tcsh/commit/86f1ca6000f81be5b3401a2ec102521cb612a518 |
|
8 |
|
9 --- tcsh-6.19.00/tw.comp.c.orig Wed Feb 3 14:07:50 2016 |
|
10 +++ tcsh-6.19.00/tw.comp.c Wed Feb 3 14:08:18 2016 |
|
11 @@ -251,7 +251,7 @@ |
|
12 tw_match(const Char *str, const Char *pat, int exact) |
|
13 { |
|
14 const Char *estr; |
|
15 - int rv = exact ? Gmatch(str, pat) : Gnmatch(str, pat, &estr); |
|
16 + int rv = exact ? Gmatch(estr = str, pat) : Gnmatch(str, pat, &estr); |
|
17 #ifdef TDEBUG |
|
18 xprintf("G%smatch(%s, ", exact ? "" : "n", short2str(str)); |
|
19 xprintf("%s, ", short2str(pat)); |