diff options
Diffstat (limited to 'shell/ash.c')
-rw-r--r-- | shell/ash.c | 25 |
1 files changed, 3 insertions, 22 deletions
diff --git a/shell/ash.c b/shell/ash.c index 3651929c2..360d39b4c 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -8417,12 +8417,6 @@ returncmd(int argc ATTRIBUTE_UNUSED, char **argv) | |||
8417 | static int breakcmd(int, char **); | 8417 | static int breakcmd(int, char **); |
8418 | static int dotcmd(int, char **); | 8418 | static int dotcmd(int, char **); |
8419 | static int evalcmd(int, char **); | 8419 | static int evalcmd(int, char **); |
8420 | #if ENABLE_ASH_BUILTIN_ECHO | ||
8421 | static int echocmd(int, char **); | ||
8422 | #endif | ||
8423 | #if ENABLE_ASH_BUILTIN_TEST | ||
8424 | static int testcmd(int, char **); | ||
8425 | #endif | ||
8426 | static int exitcmd(int, char **); | 8420 | static int exitcmd(int, char **); |
8427 | static int exportcmd(int, char **); | 8421 | static int exportcmd(int, char **); |
8428 | #if ENABLE_ASH_GETOPTS | 8422 | #if ENABLE_ASH_GETOPTS |
@@ -8464,6 +8458,9 @@ static int ulimitcmd(int, char **); | |||
8464 | * Apart from the above, [[ expr ]] should work as [ expr ] | 8458 | * Apart from the above, [[ expr ]] should work as [ expr ] |
8465 | */ | 8459 | */ |
8466 | 8460 | ||
8461 | #define testcmd test_main | ||
8462 | #define echocmd echo_main | ||
8463 | |||
8467 | /* Keep these in proper order since it is searched via bsearch() */ | 8464 | /* Keep these in proper order since it is searched via bsearch() */ |
8468 | static const struct builtincmd builtintab[] = { | 8465 | static const struct builtincmd builtintab[] = { |
8469 | { BUILTIN_SPEC_REG ".", dotcmd }, | 8466 | { BUILTIN_SPEC_REG ".", dotcmd }, |
@@ -11506,22 +11503,6 @@ exitcmd(int argc ATTRIBUTE_UNUSED, char **argv) | |||
11506 | /* NOTREACHED */ | 11503 | /* NOTREACHED */ |
11507 | } | 11504 | } |
11508 | 11505 | ||
11509 | #if ENABLE_ASH_BUILTIN_ECHO | ||
11510 | static int | ||
11511 | echocmd(int argc, char **argv) | ||
11512 | { | ||
11513 | return echo_main(argc, argv); | ||
11514 | } | ||
11515 | #endif | ||
11516 | |||
11517 | #if ENABLE_ASH_BUILTIN_TEST | ||
11518 | static int | ||
11519 | testcmd(int argc, char **argv) | ||
11520 | { | ||
11521 | return test_main(argc, argv); | ||
11522 | } | ||
11523 | #endif | ||
11524 | |||
11525 | /* | 11506 | /* |
11526 | * Read a file containing shell functions. | 11507 | * Read a file containing shell functions. |
11527 | */ | 11508 | */ |