1 From http://ftp.gnu.org/pub/gnu/bash/bash-4.3-patches/bash43-034
3 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
11 Bug-Reported-by: Dreamcat4 <dreamcat4@gmail.com>
12 Bug-Reference-ID: <CAN39uTpAEs2GFu4ebC_SfSVMRTh-DJ9YanrY4BZZ3OO+CCHjng@mail.gmail.com>
13 Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2015-05/msg00001.html
17 If neither the -f nor -v options is supplied to unset, and a name argument is
18 found to be a function and unset, subsequent name arguments are not treated as
19 variables before attempting to unset a function by that name.
21 Patch (apply with `patch -p0'):
23 *** a/bash-4.3-patched/builtins/set.def 2013-04-19 07:20:34.000000000 -0400
24 --- b/builtins/set.def 2015-05-05 13:25:36.000000000 -0400
29 int unset_function, unset_variable, unset_array, opt, nameref, any_failed;
30 + int global_unset_func, global_unset_var;
33 unset_function = unset_variable = unset_array = nameref = any_failed = 0;
34 + global_unset_func = global_unset_var = 0;
36 reset_internal_getopt ();
50 ! global_unset_func = 1;
53 ! global_unset_var = 1;
60 ! if (unset_function && unset_variable)
62 builtin_error (_("cannot simultaneously unset a function and a variable"));
66 ! if (global_unset_func && global_unset_var)
68 builtin_error (_("cannot simultaneously unset a function and a variable"));
72 name = list->word->word;
74 + unset_function = global_unset_func;
75 + unset_variable = global_unset_var;
77 #if defined (ARRAY_VARS)
80 *** a/bash-4.3/patchlevel.h 2012-12-29 10:47:57.000000000 -0500
81 --- b/patchlevel.h 2014-03-20 20:01:28.000000000 -0400
84 looks for to find the patch level (for the sccs version string). */
86 ! #define PATCHLEVEL 33
88 #endif /* _PATCHLEVEL_H_ */
90 looks for to find the patch level (for the sccs version string). */
92 ! #define PATCHLEVEL 34
94 #endif /* _PATCHLEVEL_H_ */