aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-05-27 18:07:29 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-05-27 18:07:29 +0200
commite6f6d829403156797fabc4690d497fdf7cd6f7d1 (patch)
treed2118b46c4bfca2ae806f24d28046eda9190eab5
parent20cc390b9bb33cd0ab05c8bbfcd24babad7ec204 (diff)
downloadbusybox-w32-1_14_1.tar.gz
busybox-w32-1_14_1.tar.bz2
busybox-w32-1_14_1.zip
hush: more fixes from trunk; bump version to 1.14.11_14_1
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--Makefile2
-rw-r--r--scripts/defconfig5
-rw-r--r--shell/Config.in7
-rw-r--r--shell/hush.c8
4 files changed, 16 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 0d6e17d04..e87d18d2a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
1VERSION = 1 1VERSION = 1
2PATCHLEVEL = 14 2PATCHLEVEL = 14
3SUBLEVEL = 0 3SUBLEVEL = 1
4EXTRAVERSION = 4EXTRAVERSION =
5NAME = Unnamed 5NAME = Unnamed
6 6
diff --git a/scripts/defconfig b/scripts/defconfig
index a863ecad5..f991363cc 100644
--- a/scripts/defconfig
+++ b/scripts/defconfig
@@ -1,7 +1,7 @@
1# 1#
2# Automatically generated make config: don't edit 2# Automatically generated make config: don't edit
3# Busybox version: 1.14.0 3# Busybox version: 1.14.1
4# Wed Apr 15 04:12:17 2009 4# Wed May 27 18:05:31 2009
5# 5#
6CONFIG_HAVE_DOT_CONFIG=y 6CONFIG_HAVE_DOT_CONFIG=y
7 7
@@ -859,6 +859,7 @@ CONFIG_HUSH_IF=y
859CONFIG_HUSH_LOOPS=y 859CONFIG_HUSH_LOOPS=y
860CONFIG_HUSH_CASE=y 860CONFIG_HUSH_CASE=y
861CONFIG_HUSH_FUNCTIONS=y 861CONFIG_HUSH_FUNCTIONS=y
862CONFIG_HUSH_EXPORT_N=y
862# CONFIG_LASH is not set 863# CONFIG_LASH is not set
863CONFIG_MSH=y 864CONFIG_MSH=y
864 865
diff --git a/shell/Config.in b/shell/Config.in
index 6cc11ce80..57969f02c 100644
--- a/shell/Config.in
+++ b/shell/Config.in
@@ -232,6 +232,13 @@ config HUSH_FUNCTIONS
232 help 232 help
233 Enable support for shell functions in hush. +800 bytes. 233 Enable support for shell functions in hush. +800 bytes.
234 234
235config HUSH_EXPORT_N
236 bool "Support export '-n' option"
237 default n
238 depends on HUSH
239 help
240 Enable support for export '-n' option in hush. It is a bash extension.
241
235config LASH 242config LASH
236 bool "lash (deprecated: aliased to hush)" 243 bool "lash (deprecated: aliased to hush)"
237 default n 244 default n
diff --git a/shell/hush.c b/shell/hush.c
index 8c3e7c551..735cb4cee 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -50,7 +50,6 @@
50 * 50 *
51 * TODOs: 51 * TODOs:
52 * grep for "TODO" and fix (some of them are easy) 52 * grep for "TODO" and fix (some of them are easy)
53 * $var refs in function do not pick up values set by "var=val func"
54 * builtins: ulimit 53 * builtins: ulimit
55 * follow IFS rules more precisely, including update semantics 54 * follow IFS rules more precisely, including update semantics
56 * 55 *
@@ -4110,8 +4109,11 @@ static int run_list(struct pipe *pi)
4110 } 4109 }
4111#endif 4110#endif
4112#if ENABLE_HUSH_FUNCTIONS 4111#if ENABLE_HUSH_FUNCTIONS
4113 if (G.flag_return_in_progress == 1) 4112 if (G.flag_return_in_progress == 1) {
4114 goto check_jobs_and_break; 4113 /* same as "goto check_jobs_and_break" */
4114 checkjobs(NULL);
4115 break;
4116 }
4115#endif 4117#endif
4116 } else if (pi->followup == PIPE_BG) { 4118 } else if (pi->followup == PIPE_BG) {
4117 /* What does bash do with attempts to background builtins? */ 4119 /* What does bash do with attempts to background builtins? */