rcolebaugh / rpms / bash

Forked from rpms/bash a year ago
Clone

Blame SOURCES/bash-4.2-enable-hyphened-fn-export.patch

07a490
--- variables.cold	2015-01-16 13:53:13.817363093 +0100
07a490
+++ variables.c	2015-01-16 13:57:41.839425969 +0100
07a490
@@ -366,7 +366,7 @@ initialize_shell_variables (env, privmod
07a490
 	  /* Don't import function names that are invalid identifiers from the
07a490
 	     environment, though we still allow them to be defined as shell
07a490
 	     variables. */
07a490
-	  if (legal_identifier (temp_name))
07a490
+	  if (absolute_program (temp_name) == 0 && (posixly_correct == 0 || legal_identifier (temp_name)))
07a490
 	    parse_and_execute (temp_string, temp_name,
07a490
 			       SEVAL_NONINT|SEVAL_NOHIST|SEVAL_FUNCDEF|SEVAL_ONECMD);
07a490