hush: more fixes from trunk; bump version to 1.14.1 1_14_1
authorDenys Vlasenko <vda.linux@googlemail.com>
Wed, 27 May 2009 16:07:29 +0000 (18:07 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 27 May 2009 16:07:29 +0000 (18:07 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Makefile
scripts/defconfig
shell/Config.in
shell/hush.c

index 0d6e17d04cabb6c381bc8da011824b88d969c32a..e87d18d2ae41fdb434cff6c36bda02cb9bfb4316 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
 VERSION = 1
 PATCHLEVEL = 14
-SUBLEVEL = 0
+SUBLEVEL = 1
 EXTRAVERSION =
 NAME = Unnamed
 
index a863ecad552336756beb1b8ab8d4fed48fda645c..f991363cc4a44398862a1d44e739b1f57ca7d2b4 100644 (file)
@@ -1,7 +1,7 @@
 #
 # Automatically generated make config: don't edit
-# Busybox version: 1.14.0
-# Wed Apr 15 04:12:17 2009
+# Busybox version: 1.14.1
+# Wed May 27 18:05:31 2009
 #
 CONFIG_HAVE_DOT_CONFIG=y
 
@@ -859,6 +859,7 @@ CONFIG_HUSH_IF=y
 CONFIG_HUSH_LOOPS=y
 CONFIG_HUSH_CASE=y
 CONFIG_HUSH_FUNCTIONS=y
+CONFIG_HUSH_EXPORT_N=y
 # CONFIG_LASH is not set
 CONFIG_MSH=y
 
index 6cc11ce809a949725efba602b3edeb3f06d71087..57969f02cdf00f054573a2508ac64becdcb78264 100644 (file)
@@ -232,6 +232,13 @@ config HUSH_FUNCTIONS
        help
          Enable support for shell functions in hush. +800 bytes.
 
+config HUSH_EXPORT_N
+       bool "Support export '-n' option"
+       default n
+       depends on HUSH
+       help
+         Enable support for export '-n' option in hush. It is a bash extension.
+
 config LASH
        bool "lash (deprecated: aliased to hush)"
        default n
index 8c3e7c551d3efc1a7e3f6d5541bae30e22030713..735cb4cee9b16b6bd9e953845acad298dbb8c625 100644 (file)
@@ -50,7 +50,6 @@
  *
  * TODOs:
  *      grep for "TODO" and fix (some of them are easy)
- *      $var refs in function do not pick up values set by "var=val func"
  *      builtins: ulimit
  *      follow IFS rules more precisely, including update semantics
  *
@@ -4110,8 +4109,11 @@ static int run_list(struct pipe *pi)
                                }
 #endif
 #if ENABLE_HUSH_FUNCTIONS
-                               if (G.flag_return_in_progress == 1)
-                                       goto check_jobs_and_break;
+                               if (G.flag_return_in_progress == 1) {
+                                       /* same as "goto check_jobs_and_break" */
+                                       checkjobs(NULL);
+                                       break;
+                               }
 #endif
                        } else if (pi->followup == PIPE_BG) {
                                /* What does bash do with attempts to background builtins? */