diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-08-21 00:05:51 +0200 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-08-21 00:05:51 +0200 |
| commit | 1cc4b13917c51acce1ce0d8a2cb58ab97f3756d2 (patch) | |
| tree | 974a54823fcf0c9846d29c55c6da0177a4f56796 | |
| parent | 263cff9a2f4480cd922ecff5e382e8fd804957eb (diff) | |
| download | busybox-w32-1cc4b13917c51acce1ce0d8a2cb58ab97f3756d2.tar.gz busybox-w32-1cc4b13917c51acce1ce0d8a2cb58ab97f3756d2.tar.bz2 busybox-w32-1cc4b13917c51acce1ce0d8a2cb58ab97f3756d2.zip | |
msh: aliased to hush
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| -rw-r--r-- | TODO | 8 | ||||
| -rw-r--r-- | include/applets.h | 1 | ||||
| -rw-r--r-- | include/usage.h | 13 | ||||
| -rw-r--r-- | shell/Config.in | 7 | ||||
| -rw-r--r-- | shell/Kbuild | 1 | ||||
| -rw-r--r-- | shell/hush.c | 9 | ||||
| -rw-r--r-- | shell/msh_unused.c (renamed from shell/msh.c) | 0 |
7 files changed, 17 insertions, 22 deletions
| @@ -16,14 +16,10 @@ Rob Landley suggested these: | |||
| 16 | Figure out where we need utf8 support, and add it. | 16 | Figure out where we need utf8 support, and add it. |
| 17 | 17 | ||
| 18 | sh | 18 | sh |
| 19 | The command shell situation is a big mess. We have three different | 19 | The command shell situation is a mess. We have two different |
| 20 | shells that don't really share any code, and the "standalone shell" doesn't | 20 | shells that don't really share any code, and the "standalone shell" doesn't |
| 21 | work all that well (especially not in a chroot environment), due to apps not | 21 | work all that well (especially not in a chroot environment), due to apps not |
| 22 | being reentrant. | 22 | being reentrant. |
| 23 | lash is phased out. hush can be configured down to be nearly as small, | ||
| 24 | but less buggy :) | ||
| 25 | init | ||
| 26 | General cleanup (should use ENABLE_FEATURE_INIT_SYSLOG). | ||
| 27 | Do a SUSv3 audit | 23 | Do a SUSv3 audit |
| 28 | Look at the full Single Unix Specification version 3 (available online at | 24 | Look at the full Single Unix Specification version 3 (available online at |
| 29 | "http://www.opengroup.org/onlinepubs/009695399/nfindex.html") and | 25 | "http://www.opengroup.org/onlinepubs/009695399/nfindex.html") and |
| @@ -265,7 +261,7 @@ Minor stuff: | |||
| 265 | --- | 261 | --- |
| 266 | possible code duplication ingroup() and is_a_group_member() | 262 | possible code duplication ingroup() and is_a_group_member() |
| 267 | --- | 263 | --- |
| 268 | Move __get_hz() to a better place and (re)use it in route.c, ash.c, msh.c | 264 | Move __get_hz() to a better place and (re)use it in route.c, ash.c |
| 269 | --- | 265 | --- |
| 270 | See grep -r strtod | 266 | See grep -r strtod |
| 271 | Alot of duplication that wants cleanup. | 267 | Alot of duplication that wants cleanup. |
diff --git a/include/applets.h b/include/applets.h index cb1ed567f..d4fbbc95c 100644 --- a/include/applets.h +++ b/include/applets.h | |||
| @@ -347,7 +347,6 @@ IF_SETSID(APPLET(setsid, _BB_DIR_USR_BIN, _BB_SUID_DROP)) | |||
| 347 | IF_SETUIDGID(APPLET_ODDNAME(setuidgid, chpst, _BB_DIR_USR_BIN, _BB_SUID_DROP, setuidgid)) | 347 | IF_SETUIDGID(APPLET_ODDNAME(setuidgid, chpst, _BB_DIR_USR_BIN, _BB_SUID_DROP, setuidgid)) |
| 348 | IF_FEATURE_SH_IS_ASH(APPLET_ODDNAME(sh, ash, _BB_DIR_BIN, _BB_SUID_DROP, sh)) | 348 | IF_FEATURE_SH_IS_ASH(APPLET_ODDNAME(sh, ash, _BB_DIR_BIN, _BB_SUID_DROP, sh)) |
| 349 | IF_FEATURE_SH_IS_HUSH(APPLET_ODDNAME(sh, hush, _BB_DIR_BIN, _BB_SUID_DROP, sh)) | 349 | IF_FEATURE_SH_IS_HUSH(APPLET_ODDNAME(sh, hush, _BB_DIR_BIN, _BB_SUID_DROP, sh)) |
| 350 | IF_FEATURE_SH_IS_MSH(APPLET_ODDNAME(sh, msh, _BB_DIR_BIN, _BB_SUID_DROP, sh)) | ||
| 351 | IF_SHA1SUM(APPLET_ODDNAME(sha1sum, md5_sha1_sum, _BB_DIR_USR_BIN, _BB_SUID_DROP, sha1sum)) | 350 | IF_SHA1SUM(APPLET_ODDNAME(sha1sum, md5_sha1_sum, _BB_DIR_USR_BIN, _BB_SUID_DROP, sha1sum)) |
| 352 | IF_SHA256SUM(APPLET_ODDNAME(sha256sum, md5_sha1_sum, _BB_DIR_USR_BIN, _BB_SUID_DROP, sha256sum)) | 351 | IF_SHA256SUM(APPLET_ODDNAME(sha256sum, md5_sha1_sum, _BB_DIR_USR_BIN, _BB_SUID_DROP, sha256sum)) |
| 353 | IF_SHA512SUM(APPLET_ODDNAME(sha512sum, md5_sha1_sum, _BB_DIR_USR_BIN, _BB_SUID_DROP, sha512sum)) | 352 | IF_SHA512SUM(APPLET_ODDNAME(sha512sum, md5_sha1_sum, _BB_DIR_USR_BIN, _BB_SUID_DROP, sha512sum)) |
diff --git a/include/usage.h b/include/usage.h index 81ddbd23c..8a5c7a088 100644 --- a/include/usage.h +++ b/include/usage.h | |||
| @@ -119,13 +119,10 @@ | |||
| 119 | #define ash_full_usage "" | 119 | #define ash_full_usage "" |
| 120 | #define hush_trivial_usage NOUSAGE_STR | 120 | #define hush_trivial_usage NOUSAGE_STR |
| 121 | #define hush_full_usage "" | 121 | #define hush_full_usage "" |
| 122 | #define lash_trivial_usage NOUSAGE_STR | ||
| 123 | #define lash_full_usage "" | ||
| 122 | #define msh_trivial_usage NOUSAGE_STR | 124 | #define msh_trivial_usage NOUSAGE_STR |
| 123 | #define msh_full_usage "" | 125 | #define msh_full_usage "" |
| 124 | #define bbsh_trivial_usage \ | ||
| 125 | "[FILE]...\n" \ | ||
| 126 | "or: bbsh -c command [args]..." | ||
| 127 | #define bbsh_full_usage "\n\n" \ | ||
| 128 | "The bbsh shell (command interpreter)" | ||
| 129 | 126 | ||
| 130 | #define awk_trivial_usage \ | 127 | #define awk_trivial_usage \ |
| 131 | "[OPTIONS] [AWK_PROGRAM] [FILE]..." | 128 | "[OPTIONS] [AWK_PROGRAM] [FILE]..." |
| @@ -3904,12 +3901,6 @@ | |||
| 3904 | "and will not be affected by keyboard signals (Ctrl-C etc).\n" \ | 3901 | "and will not be affected by keyboard signals (Ctrl-C etc).\n" \ |
| 3905 | "See setsid(2) for details." \ | 3902 | "See setsid(2) for details." \ |
| 3906 | 3903 | ||
| 3907 | #define lash_trivial_usage \ | ||
| 3908 | "[FILE]...\n" \ | ||
| 3909 | "or: sh -c command [args]..." | ||
| 3910 | #define lash_full_usage "\n\n" \ | ||
| 3911 | "lash is deprecated, please use hush" | ||
| 3912 | |||
| 3913 | #define last_trivial_usage \ | 3904 | #define last_trivial_usage \ |
| 3914 | ""IF_FEATURE_LAST_FANCY("[-HW] [-f file]") | 3905 | ""IF_FEATURE_LAST_FANCY("[-HW] [-f file]") |
| 3915 | #define last_full_usage "\n\n" \ | 3906 | #define last_full_usage "\n\n" \ |
diff --git a/shell/Config.in b/shell/Config.in index 126dba8e5..cf151933b 100644 --- a/shell/Config.in +++ b/shell/Config.in | |||
| @@ -24,9 +24,9 @@ config FEATURE_SH_IS_HUSH | |||
| 24 | #### select LASH | 24 | #### select LASH |
| 25 | #### bool "lash" | 25 | #### bool "lash" |
| 26 | 26 | ||
| 27 | config FEATURE_SH_IS_MSH | 27 | ####config FEATURE_SH_IS_MSH |
| 28 | select MSH | 28 | #### select MSH |
| 29 | bool "msh" | 29 | #### bool "msh" |
| 30 | 30 | ||
| 31 | config FEATURE_SH_IS_NONE | 31 | config FEATURE_SH_IS_NONE |
| 32 | bool "none" | 32 | bool "none" |
| @@ -260,6 +260,7 @@ config LASH | |||
| 260 | config MSH | 260 | config MSH |
| 261 | bool "msh (deprecated: please use hush)" | 261 | bool "msh (deprecated: please use hush)" |
| 262 | default n | 262 | default n |
| 263 | select HUSH | ||
| 263 | help | 264 | help |
| 264 | msh is deprecated and will be removed, please migrate to hush. | 265 | msh is deprecated and will be removed, please migrate to hush. |
| 265 | If there is a feature msh has but hush does not, please let us know. | 266 | If there is a feature msh has but hush does not, please let us know. |
diff --git a/shell/Kbuild b/shell/Kbuild index 8b693ecc3..4d4741eff 100644 --- a/shell/Kbuild +++ b/shell/Kbuild | |||
| @@ -7,6 +7,5 @@ | |||
| 7 | lib-y:= | 7 | lib-y:= |
| 8 | lib-$(CONFIG_ASH) += ash.o ash_ptr_hack.o | 8 | lib-$(CONFIG_ASH) += ash.o ash_ptr_hack.o |
| 9 | lib-$(CONFIG_HUSH) += hush.o match.o | 9 | lib-$(CONFIG_HUSH) += hush.o match.o |
| 10 | lib-$(CONFIG_MSH) += msh.o | ||
| 11 | lib-$(CONFIG_CTTYHACK) += cttyhack.o | 10 | lib-$(CONFIG_CTTYHACK) += cttyhack.o |
| 12 | lib-$(CONFIG_SH_MATH_SUPPORT) += math.o | 11 | lib-$(CONFIG_SH_MATH_SUPPORT) += math.o |
diff --git a/shell/hush.c b/shell/hush.c index 5698bb5a5..7ac29ace2 100644 --- a/shell/hush.c +++ b/shell/hush.c | |||
| @@ -6746,6 +6746,15 @@ int lash_main(int argc, char **argv) | |||
| 6746 | } | 6746 | } |
| 6747 | #endif | 6747 | #endif |
| 6748 | 6748 | ||
| 6749 | #if ENABLE_MSH | ||
| 6750 | int msh_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | ||
| 6751 | int msh_main(int argc, char **argv) | ||
| 6752 | { | ||
| 6753 | //bb_error_msg("msh is deprecated, please use hush instead"); | ||
| 6754 | return hush_main(argc, argv); | ||
| 6755 | } | ||
| 6756 | #endif | ||
| 6757 | |||
| 6749 | 6758 | ||
| 6750 | /* | 6759 | /* |
| 6751 | * Built-ins | 6760 | * Built-ins |
diff --git a/shell/msh.c b/shell/msh_unused.c index fe85a8170..fe85a8170 100644 --- a/shell/msh.c +++ b/shell/msh_unused.c | |||
