diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2017-07-03 16:56:37 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2017-07-03 16:56:37 +0200 |
commit | 2e989ef232e35750df573898077dd356003705b2 (patch) | |
tree | 82b5cd9e138106ce4083be6c9c368a95e4b9941a | |
parent | f82be93c1cd30e8168e91433bcce9fca58f7d0c8 (diff) | |
download | busybox-w32-2e989ef232e35750df573898077dd356003705b2.tar.gz busybox-w32-2e989ef232e35750df573898077dd356003705b2.tar.bz2 busybox-w32-2e989ef232e35750df573898077dd356003705b2.zip |
msh: delete this applet
It's deprecated since 2009 and interferes with make_single_applets.sh tests.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | configs/TEST_nommu_defconfig | 1 | ||||
-rw-r--r-- | configs/TEST_noprintf_defconfig | 1 | ||||
-rw-r--r-- | configs/TEST_rh9_defconfig | 1 | ||||
-rw-r--r-- | configs/android2_defconfig | 1 | ||||
-rw-r--r-- | configs/android_502_defconfig | 1 | ||||
-rw-r--r-- | configs/android_defconfig | 1 | ||||
-rw-r--r-- | configs/android_ndk_defconfig | 1 | ||||
-rw-r--r-- | configs/cygwin_defconfig | 1 | ||||
-rw-r--r-- | configs/freebsd_defconfig | 1 | ||||
-rwxr-xr-x | shell/ash_test/run-all | 6 | ||||
-rw-r--r-- | shell/hush.c | 18 | ||||
-rw-r--r-- | testsuite/msh/msh-supports-underscores-in-variable-names | 1 |
12 files changed, 3 insertions, 31 deletions
diff --git a/configs/TEST_nommu_defconfig b/configs/TEST_nommu_defconfig index 7fbbbecc7..6ff68a092 100644 --- a/configs/TEST_nommu_defconfig +++ b/configs/TEST_nommu_defconfig | |||
@@ -891,7 +891,6 @@ CONFIG_HUSH_FUNCTIONS=y | |||
891 | CONFIG_HUSH_LOCAL=y | 891 | CONFIG_HUSH_LOCAL=y |
892 | CONFIG_HUSH_EXPORT_N=y | 892 | CONFIG_HUSH_EXPORT_N=y |
893 | CONFIG_HUSH_RANDOM_SUPPORT=y | 893 | CONFIG_HUSH_RANDOM_SUPPORT=y |
894 | CONFIG_MSH=y | ||
895 | CONFIG_SH_MATH_SUPPORT=y | 894 | CONFIG_SH_MATH_SUPPORT=y |
896 | CONFIG_SH_MATH_SUPPORT_64=y | 895 | CONFIG_SH_MATH_SUPPORT_64=y |
897 | CONFIG_FEATURE_SH_EXTRA_QUIET=y | 896 | CONFIG_FEATURE_SH_EXTRA_QUIET=y |
diff --git a/configs/TEST_noprintf_defconfig b/configs/TEST_noprintf_defconfig index 3f85ee1df..4b2ef402a 100644 --- a/configs/TEST_noprintf_defconfig +++ b/configs/TEST_noprintf_defconfig | |||
@@ -898,7 +898,6 @@ CONFIG_FEATURE_SH_IS_NONE=y | |||
898 | # CONFIG_FEATURE_BASH_IS_ASH is not set | 898 | # CONFIG_FEATURE_BASH_IS_ASH is not set |
899 | # CONFIG_FEATURE_BASH_IS_HUSH is not set | 899 | # CONFIG_FEATURE_BASH_IS_HUSH is not set |
900 | CONFIG_FEATURE_BASH_IS_NONE=y | 900 | CONFIG_FEATURE_BASH_IS_NONE=y |
901 | # CONFIG_MSH is not set | ||
902 | # CONFIG_SH_MATH_SUPPORT is not set | 901 | # CONFIG_SH_MATH_SUPPORT is not set |
903 | # CONFIG_SH_MATH_SUPPORT_64 is not set | 902 | # CONFIG_SH_MATH_SUPPORT_64 is not set |
904 | # CONFIG_FEATURE_SH_EXTRA_QUIET is not set | 903 | # CONFIG_FEATURE_SH_EXTRA_QUIET is not set |
diff --git a/configs/TEST_rh9_defconfig b/configs/TEST_rh9_defconfig index 34d8e31e2..52f3e4670 100644 --- a/configs/TEST_rh9_defconfig +++ b/configs/TEST_rh9_defconfig | |||
@@ -905,7 +905,6 @@ CONFIG_HUSH_FUNCTIONS=y | |||
905 | CONFIG_HUSH_LOCAL=y | 905 | CONFIG_HUSH_LOCAL=y |
906 | CONFIG_HUSH_EXPORT_N=y | 906 | CONFIG_HUSH_EXPORT_N=y |
907 | CONFIG_HUSH_RANDOM_SUPPORT=y | 907 | CONFIG_HUSH_RANDOM_SUPPORT=y |
908 | CONFIG_MSH=y | ||
909 | CONFIG_SH_MATH_SUPPORT=y | 908 | CONFIG_SH_MATH_SUPPORT=y |
910 | CONFIG_SH_MATH_SUPPORT_64=y | 909 | CONFIG_SH_MATH_SUPPORT_64=y |
911 | CONFIG_FEATURE_SH_EXTRA_QUIET=y | 910 | CONFIG_FEATURE_SH_EXTRA_QUIET=y |
diff --git a/configs/android2_defconfig b/configs/android2_defconfig index 20866c32b..9202320a4 100644 --- a/configs/android2_defconfig +++ b/configs/android2_defconfig | |||
@@ -952,7 +952,6 @@ CONFIG_CTTYHACK=y | |||
952 | # CONFIG_HUSH_RANDOM_SUPPORT is not set | 952 | # CONFIG_HUSH_RANDOM_SUPPORT is not set |
953 | # CONFIG_HUSH_EXPORT_N is not set | 953 | # CONFIG_HUSH_EXPORT_N is not set |
954 | # CONFIG_HUSH_MODE_X is not set | 954 | # CONFIG_HUSH_MODE_X is not set |
955 | # CONFIG_MSH is not set | ||
956 | # CONFIG_FEATURE_SH_IS_ASH is not set | 955 | # CONFIG_FEATURE_SH_IS_ASH is not set |
957 | # CONFIG_FEATURE_SH_IS_HUSH is not set | 956 | # CONFIG_FEATURE_SH_IS_HUSH is not set |
958 | CONFIG_FEATURE_SH_IS_NONE=y | 957 | CONFIG_FEATURE_SH_IS_NONE=y |
diff --git a/configs/android_502_defconfig b/configs/android_502_defconfig index bdca9eebb..1901bdbb0 100644 --- a/configs/android_502_defconfig +++ b/configs/android_502_defconfig | |||
@@ -1098,7 +1098,6 @@ CONFIG_CTTYHACK=y | |||
1098 | # CONFIG_HUSH_RANDOM_SUPPORT is not set | 1098 | # CONFIG_HUSH_RANDOM_SUPPORT is not set |
1099 | # CONFIG_HUSH_EXPORT_N is not set | 1099 | # CONFIG_HUSH_EXPORT_N is not set |
1100 | # CONFIG_HUSH_MODE_X is not set | 1100 | # CONFIG_HUSH_MODE_X is not set |
1101 | # CONFIG_MSH is not set | ||
1102 | CONFIG_FEATURE_SH_IS_ASH=y | 1101 | CONFIG_FEATURE_SH_IS_ASH=y |
1103 | # CONFIG_FEATURE_SH_IS_HUSH is not set | 1102 | # CONFIG_FEATURE_SH_IS_HUSH is not set |
1104 | # CONFIG_FEATURE_SH_IS_NONE is not set | 1103 | # CONFIG_FEATURE_SH_IS_NONE is not set |
diff --git a/configs/android_defconfig b/configs/android_defconfig index 6ef81750e..ea6e8a79e 100644 --- a/configs/android_defconfig +++ b/configs/android_defconfig | |||
@@ -984,7 +984,6 @@ CONFIG_CTTYHACK=y | |||
984 | # CONFIG_HUSH_RANDOM_SUPPORT is not set | 984 | # CONFIG_HUSH_RANDOM_SUPPORT is not set |
985 | # CONFIG_HUSH_EXPORT_N is not set | 985 | # CONFIG_HUSH_EXPORT_N is not set |
986 | # CONFIG_HUSH_MODE_X is not set | 986 | # CONFIG_HUSH_MODE_X is not set |
987 | # CONFIG_MSH is not set | ||
988 | # CONFIG_FEATURE_SH_IS_ASH is not set | 987 | # CONFIG_FEATURE_SH_IS_ASH is not set |
989 | # CONFIG_FEATURE_SH_IS_HUSH is not set | 988 | # CONFIG_FEATURE_SH_IS_HUSH is not set |
990 | CONFIG_FEATURE_SH_IS_NONE=y | 989 | CONFIG_FEATURE_SH_IS_NONE=y |
diff --git a/configs/android_ndk_defconfig b/configs/android_ndk_defconfig index 35d03b42e..61871fcb1 100644 --- a/configs/android_ndk_defconfig +++ b/configs/android_ndk_defconfig | |||
@@ -1013,7 +1013,6 @@ CONFIG_CTTYHACK=y | |||
1013 | # CONFIG_HUSH_RANDOM_SUPPORT is not set | 1013 | # CONFIG_HUSH_RANDOM_SUPPORT is not set |
1014 | # CONFIG_HUSH_EXPORT_N is not set | 1014 | # CONFIG_HUSH_EXPORT_N is not set |
1015 | # CONFIG_HUSH_MODE_X is not set | 1015 | # CONFIG_HUSH_MODE_X is not set |
1016 | # CONFIG_MSH is not set | ||
1017 | # CONFIG_FEATURE_SH_IS_ASH is not set | 1016 | # CONFIG_FEATURE_SH_IS_ASH is not set |
1018 | # CONFIG_FEATURE_SH_IS_HUSH is not set | 1017 | # CONFIG_FEATURE_SH_IS_HUSH is not set |
1019 | CONFIG_FEATURE_SH_IS_NONE=y | 1018 | CONFIG_FEATURE_SH_IS_NONE=y |
diff --git a/configs/cygwin_defconfig b/configs/cygwin_defconfig index 6bfc973ef..54aa44470 100644 --- a/configs/cygwin_defconfig +++ b/configs/cygwin_defconfig | |||
@@ -955,7 +955,6 @@ CONFIG_HUSH_LOCAL=y | |||
955 | CONFIG_HUSH_RANDOM_SUPPORT=y | 955 | CONFIG_HUSH_RANDOM_SUPPORT=y |
956 | CONFIG_HUSH_EXPORT_N=y | 956 | CONFIG_HUSH_EXPORT_N=y |
957 | CONFIG_HUSH_MODE_X=y | 957 | CONFIG_HUSH_MODE_X=y |
958 | # CONFIG_MSH is not set | ||
959 | CONFIG_FEATURE_SH_IS_ASH=y | 958 | CONFIG_FEATURE_SH_IS_ASH=y |
960 | # CONFIG_FEATURE_SH_IS_HUSH is not set | 959 | # CONFIG_FEATURE_SH_IS_HUSH is not set |
961 | # CONFIG_FEATURE_SH_IS_NONE is not set | 960 | # CONFIG_FEATURE_SH_IS_NONE is not set |
diff --git a/configs/freebsd_defconfig b/configs/freebsd_defconfig index e3d04aedc..fadbca13b 100644 --- a/configs/freebsd_defconfig +++ b/configs/freebsd_defconfig | |||
@@ -931,7 +931,6 @@ CONFIG_ASH=y | |||
931 | # CONFIG_HUSH_RANDOM_SUPPORT is not set | 931 | # CONFIG_HUSH_RANDOM_SUPPORT is not set |
932 | # CONFIG_HUSH_EXPORT_N is not set | 932 | # CONFIG_HUSH_EXPORT_N is not set |
933 | # CONFIG_HUSH_MODE_X is not set | 933 | # CONFIG_HUSH_MODE_X is not set |
934 | # CONFIG_MSH is not set | ||
935 | CONFIG_FEATURE_SH_IS_ASH=y | 934 | CONFIG_FEATURE_SH_IS_ASH=y |
936 | # CONFIG_FEATURE_SH_IS_HUSH is not set | 935 | # CONFIG_FEATURE_SH_IS_HUSH is not set |
937 | # CONFIG_FEATURE_SH_IS_NONE is not set | 936 | # CONFIG_FEATURE_SH_IS_NONE is not set |
diff --git a/shell/ash_test/run-all b/shell/ash_test/run-all index 354cc1fcf..8dfdddd9f 100755 --- a/shell/ash_test/run-all +++ b/shell/ash_test/run-all | |||
@@ -59,9 +59,9 @@ do_test() | |||
59 | if [ $# -lt 1 ]; then | 59 | if [ $# -lt 1 ]; then |
60 | # All sub directories | 60 | # All sub directories |
61 | modules=`ls -d ash-*` | 61 | modules=`ls -d ash-*` |
62 | # If you want to test ash against hush and msh testsuites | 62 | # If you want to test ash against hush testsuite |
63 | # (have to copy hush_test and msh_test dirs to current dir first): | 63 | # (have to copy hush_test dir to current dir first): |
64 | #modules=`ls -d ash-* hush_test/hush-* msh_test/msh-*` | 64 | #modules=`ls -d ash-* hush_test/hush-*` |
65 | 65 | ||
66 | for module in $modules; do | 66 | for module in $modules; do |
67 | do_test $module | 67 | do_test $module |
diff --git a/shell/hush.c b/shell/hush.c index f5c1e5bc1..fc6db316e 100644 --- a/shell/hush.c +++ b/shell/hush.c | |||
@@ -268,17 +268,9 @@ | |||
268 | //config: bool "memleak builtin (debugging)" | 268 | //config: bool "memleak builtin (debugging)" |
269 | //config: default n | 269 | //config: default n |
270 | //config: depends on HUSH || SH_IS_HUSH || BASH_IS_HUSH | 270 | //config: depends on HUSH || SH_IS_HUSH || BASH_IS_HUSH |
271 | //config: | ||
272 | //config:config MSH | ||
273 | //config: bool "msh (deprecated: aliased to hush)" | ||
274 | //config: default n | ||
275 | //config: select HUSH | ||
276 | //config: help | ||
277 | //config: msh is deprecated and will be removed, please migrate to hush. | ||
278 | 271 | ||
279 | //applet:IF_HUSH(APPLET(hush, BB_DIR_BIN, BB_SUID_DROP)) | 272 | //applet:IF_HUSH(APPLET(hush, BB_DIR_BIN, BB_SUID_DROP)) |
280 | // APPLET_ODDNAME:name main location suid_type help | 273 | // APPLET_ODDNAME:name main location suid_type help |
281 | //applet:IF_MSH( APPLET_ODDNAME(msh, hush, BB_DIR_BIN, BB_SUID_DROP, hush)) | ||
282 | //applet:IF_SH_IS_HUSH( APPLET_ODDNAME(sh, hush, BB_DIR_BIN, BB_SUID_DROP, hush)) | 274 | //applet:IF_SH_IS_HUSH( APPLET_ODDNAME(sh, hush, BB_DIR_BIN, BB_SUID_DROP, hush)) |
283 | //applet:IF_BASH_IS_HUSH(APPLET_ODDNAME(bash, hush, BB_DIR_BIN, BB_SUID_DROP, hush)) | 275 | //applet:IF_BASH_IS_HUSH(APPLET_ODDNAME(bash, hush, BB_DIR_BIN, BB_SUID_DROP, hush)) |
284 | 276 | ||
@@ -8808,16 +8800,6 @@ int hush_main(int argc, char **argv) | |||
8808 | } | 8800 | } |
8809 | 8801 | ||
8810 | 8802 | ||
8811 | #if ENABLE_MSH | ||
8812 | int msh_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | ||
8813 | int msh_main(int argc, char **argv) | ||
8814 | { | ||
8815 | bb_error_msg("msh is deprecated, please use hush instead"); | ||
8816 | return hush_main(argc, argv); | ||
8817 | } | ||
8818 | #endif | ||
8819 | |||
8820 | |||
8821 | /* | 8803 | /* |
8822 | * Built-ins | 8804 | * Built-ins |
8823 | */ | 8805 | */ |
diff --git a/testsuite/msh/msh-supports-underscores-in-variable-names b/testsuite/msh/msh-supports-underscores-in-variable-names deleted file mode 100644 index 9c7834b37..000000000 --- a/testsuite/msh/msh-supports-underscores-in-variable-names +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | test "`busybox msh -c 'FOO_BAR=foo; echo $FOO_BAR'`" = foo | ||