components/bash/patches/solaris-005.variables.c.patch
author Vladimir Marek <Vladimir.Marek@oracle.com>
Tue, 22 Nov 2016 10:16:59 +0100
changeset 7485 89b2d849f322
parent 5518 c47fe0edc204
child 7486 57b5a32e1ae4
permissions -rw-r--r--
25123965 Update bash to version 4.4 24689447 problem in UTILITY/BASH 21341453 process hangs when terminated with unfinished command 21196056 bash test is failing to finish 19394218 bash : Parameter Substitution Causing Memory Leak

# Export the default variables if they aren't set.
# Otherwise we end up with inconsistently defined/exported
# defaults.
# Solaris-specific patch.
--- variables.c	2011-01-24 17:07:48.000000000 -0800
+++ variables.c	2011-11-29 09:29:51.902791524 -0800
@@ -471,14 +471,12 @@
   /* Now make our own defaults in case the vars that we think are
      important are missing. */
   temp_var = set_if_not ("PATH", DEFAULT_PATH_VALUE);
-#if 0
+
   set_auto_export (temp_var);	/* XXX */
-#endif
 
   temp_var = set_if_not ("TERM", "dumb");
-#if 0
+
   set_auto_export (temp_var);	/* XXX */
-#endif
 
 #if defined (__QNX__)
   /* set node id -- don't import it from the environment */