]> git.ipfire.org Git - thirdparty/make.git/commitdiff
Formerly variable.c.~4~
authorRoland McGrath <roland@redhat.com>
Tue, 12 May 1992 04:42:11 +0000 (04:42 +0000)
committerRoland McGrath <roland@redhat.com>
Tue, 12 May 1992 04:42:11 +0000 (04:42 +0000)
variable.c

index 16e5ada7fb0610f5b1d942a4292b54c5f5bfc7d1..8a257fdbf7c622cd25bed75d0e564f1cf43567f0 100644 (file)
@@ -370,13 +370,13 @@ define_automatic_variables ()
   /* This won't override any definition, but it
      will provide one if there isn't one there.  */
   v = define_variable ("SHELL", 5, default_shell, o_default, 0);
+  v->export = 1;
 
-  /* Don't let SHELL come from the environment
-     if MAKELEVEL is 0.  Also, SHELL must not be empty.  */
-  if (*v->value == '\0' || (v->origin == o_env && makelevel == 0))
+  /* Don't let SHELL come from the environment.  */
+  if (*v->value == '\0' || (v->origin == o_env))
     {
       v->origin = o_file;
-      v->value = savestring ("/bin/sh", 7);
+      v->value = savestring (default_shell, 7);
     }
 }
 \f