7 Bug-Reported-by: NBaH <nbah@sfr.fr>
8 Bug-Reference-ID: <ler0b5$iu9$1@speranza.aioe.org>
9 Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2014-02/msg00092.html
13 A missing check for a valid option prevented `test -R' from working. There
14 is another problem that causes bash to look up the wrong variable name when
15 processing the argument to `test -R'.
17 Patch (apply with `patch -p0'):
21 @@ -646,8 +646,8 @@ unary_test (op, arg)
22 return (v && invisible_p (v) == 0 && var_isset (v) ? TRUE : FALSE);
25 - v = find_variable (arg);
26 - return (v && invisible_p (v) == 0 && var_isset (v) && nameref_p (v) ? TRUE : FALSE);
27 + v = find_variable_noref (arg);
28 + return ((v && invisible_p (v) == 0 && var_isset (v) && nameref_p (v)) ? TRUE : FALSE);
31 /* We can't actually get here, but this shuts up gcc. */
32 @@ -723,6 +723,7 @@ test_unop (op)
33 case 'o': case 'p': case 'r': case 's': case 't':
34 case 'u': case 'v': case 'w': case 'x': case 'z':
35 case 'G': case 'L': case 'O': case 'S': case 'N':
43 regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh
44 looks for to find the patch level (for the sccs version string). */
49 #endif /* _PATCHLEVEL_H_ */