diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-05-27 14:39:35 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-05-27 14:39:35 +0200 |
commit | 673e945052fd6a5de31249a9a630f4f2bf7ec4ef (patch) | |
tree | c7f7c6cba1205161699a1d24fb159ffa87f7c3cb | |
parent | 29ec1160374bad26d47eeb7ac2795456a1f3e6df (diff) | |
download | busybox-w32-673e945052fd6a5de31249a9a630f4f2bf7ec4ef.tar.gz busybox-w32-673e945052fd6a5de31249a9a630f4f2bf7ec4ef.tar.bz2 busybox-w32-673e945052fd6a5de31249a9a630f4f2bf7ec4ef.zip |
hush: remove outdated TODO and superfluous macro; fix compile breakage
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | shell/hush.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/shell/hush.c b/shell/hush.c index 533c56de2..7167de701 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 | * |
@@ -100,10 +99,9 @@ | |||
100 | # undef CONFIG_FEATURE_SH_STANDALONE | 99 | # undef CONFIG_FEATURE_SH_STANDALONE |
101 | # undef ENABLE_FEATURE_SH_STANDALONE | 100 | # undef ENABLE_FEATURE_SH_STANDALONE |
102 | # undef IF_FEATURE_SH_STANDALONE | 101 | # undef IF_FEATURE_SH_STANDALONE |
103 | # define IF_NOT_FEATURE_SH_STANDALONE(...) __VA_ARGS__ | ||
104 | # define ENABLE_FEATURE_SH_STANDALONE 0 | ||
105 | # define IF_FEATURE_SH_STANDALONE(...) | 102 | # define IF_FEATURE_SH_STANDALONE(...) |
106 | # define IF_NOT_FEATURE_SH_STANDALONE(...) __VA_ARGS__ | 103 | # define IF_NOT_FEATURE_SH_STANDALONE(...) __VA_ARGS__ |
104 | # define ENABLE_FEATURE_SH_STANDALONE 0 | ||
107 | #endif | 105 | #endif |
108 | 106 | ||
109 | #if !ENABLE_HUSH_INTERACTIVE | 107 | #if !ENABLE_HUSH_INTERACTIVE |
@@ -4111,8 +4109,11 @@ static int run_list(struct pipe *pi) | |||
4111 | } | 4109 | } |
4112 | #endif | 4110 | #endif |
4113 | #if ENABLE_HUSH_FUNCTIONS | 4111 | #if ENABLE_HUSH_FUNCTIONS |
4114 | if (G.flag_return_in_progress == 1) | 4112 | if (G.flag_return_in_progress == 1) { |
4115 | goto check_jobs_and_break; | 4113 | /* same as "goto check_jobs_and_break" */ |
4114 | checkjobs(NULL); | ||
4115 | break; | ||
4116 | } | ||
4116 | #endif | 4117 | #endif |
4117 | } else if (pi->followup == PIPE_BG) { | 4118 | } else if (pi->followup == PIPE_BG) { |
4118 | /* What does bash do with attempts to background builtins? */ | 4119 | /* What does bash do with attempts to background builtins? */ |