1 # DP: [PATCH] Disable all exported shell functions.
3 diff --git a/bash/variables.c b/bash/variables.c
4 index 92a5a10..fe0832e 100644
7 @@ -347,6 +347,7 @@ initialize_shell_variables (env, privmode)
9 temp_var = (SHELL_VAR *)NULL;
11 +#if 0 /* Disable exporting shell functions because they are mad. */
12 /* If exported function, define it now. Don't import functions from
13 the environment in privileged mode. */
14 if (privmode == 0 && read_but_dont_execute == 0 && STREQN ("() {", string, 4))
15 @@ -380,6 +381,9 @@ initialize_shell_variables (env, privmode)
16 report_error (_("error importing function definition for `%s'"), name);
20 + if (0) ; /* needed for syntax */
22 #if defined (ARRAY_VARS)
24 /* Array variables may not yet be exported. */