aboutsummaryrefslogtreecommitdiff
path: root/shells/bash3/files/patch-execute_cmd.c
blob: e50bfb5bd1e0fbc4401f9c586e4ada427a30fd76 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- execute_cmd.c.shellfunc	Tue Jan 25 11:29:11 2000
+++ execute_cmd.c	Tue May  2 21:26:24 2000
@@ -2762,6 +2762,8 @@
   if (tc && (flags & CMD_IGNORE_RETURN))
     tc->flags |= CMD_IGNORE_RETURN;
 
+  old_shell_function = this_shell_function;
+
   if (subshell == 0)
     {
       begin_unwind_frame ("function_calling");
@@ -2843,6 +2845,8 @@
 
   if (variable_context == 0 || this_shell_function == 0)
     make_funcname_visible (0);
+
+  this_shell_function = old_shell_function;
 
   return (result);
 }