7 Bug-Reported-by: Dan Douglas <ormaaj@gmail.com>
8 Bug-Reference-ID: <7781746.RhfoTROLxF@smorgbox>
9 Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2014-05/msg00026.html
13 The code that creates local variables should not clear the `invisible'
14 attribute when returning an existing local variable. Let the code that
15 actually assigns a value clear it.
17 Patch (apply with `patch -p0'):
18 *** ../bash-4.3-patched/variables.c 2014-02-14 11:55:12.000000000 -0500
19 --- variables.c 2014-05-07 10:53:57.000000000 -0400
22 old_var = find_variable (name);
23 if (old_var && local_p (old_var) && old_var->context == variable_context)
25 ! VUNSETATTR (old_var, att_invisible); /* XXX */
29 was_tmpvar = old_var && tempvar_p (old_var);
31 old_var = find_variable (name);
32 if (old_var && local_p (old_var) && old_var->context == variable_context)
35 was_tmpvar = old_var && tempvar_p (old_var);
37 *** ../bash-4.3/patchlevel.h 2012-12-29 10:47:57.000000000 -0500
38 --- patchlevel.h 2014-03-20 20:01:28.000000000 -0400
41 looks for to find the patch level (for the sccs version string). */
43 ! #define PATCHLEVEL 16
45 #endif /* _PATCHLEVEL_H_ */
47 looks for to find the patch level (for the sccs version string). */
49 ! #define PATCHLEVEL 17
51 #endif /* _PATCHLEVEL_H_ */