hush: remove outdated TODO and superfluous macro; fix compile breakage
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
29ec116037
commit
673e945052
11
shell/hush.c
11
shell/hush.c
@ -50,7 +50,6 @@
|
|||||||
*
|
*
|
||||||
* TODOs:
|
* TODOs:
|
||||||
* grep for "TODO" and fix (some of them are easy)
|
* 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
|
* builtins: ulimit
|
||||||
* follow IFS rules more precisely, including update semantics
|
* follow IFS rules more precisely, including update semantics
|
||||||
*
|
*
|
||||||
@ -100,10 +99,9 @@
|
|||||||
# undef CONFIG_FEATURE_SH_STANDALONE
|
# undef CONFIG_FEATURE_SH_STANDALONE
|
||||||
# undef ENABLE_FEATURE_SH_STANDALONE
|
# undef ENABLE_FEATURE_SH_STANDALONE
|
||||||
# undef IF_FEATURE_SH_STANDALONE
|
# undef IF_FEATURE_SH_STANDALONE
|
||||||
# define IF_NOT_FEATURE_SH_STANDALONE(...) __VA_ARGS__
|
|
||||||
# define ENABLE_FEATURE_SH_STANDALONE 0
|
|
||||||
# define IF_FEATURE_SH_STANDALONE(...)
|
# define IF_FEATURE_SH_STANDALONE(...)
|
||||||
# define IF_NOT_FEATURE_SH_STANDALONE(...) __VA_ARGS__
|
# define IF_NOT_FEATURE_SH_STANDALONE(...) __VA_ARGS__
|
||||||
|
# define ENABLE_FEATURE_SH_STANDALONE 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !ENABLE_HUSH_INTERACTIVE
|
#if !ENABLE_HUSH_INTERACTIVE
|
||||||
@ -4111,8 +4109,11 @@ static int run_list(struct pipe *pi)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#if ENABLE_HUSH_FUNCTIONS
|
#if ENABLE_HUSH_FUNCTIONS
|
||||||
if (G.flag_return_in_progress == 1)
|
if (G.flag_return_in_progress == 1) {
|
||||||
goto check_jobs_and_break;
|
/* same as "goto check_jobs_and_break" */
|
||||||
|
checkjobs(NULL);
|
||||||
|
break;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
} else if (pi->followup == PIPE_BG) {
|
} else if (pi->followup == PIPE_BG) {
|
||||||
/* What does bash do with attempts to background builtins? */
|
/* What does bash do with attempts to background builtins? */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user