diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-11-23 23:28:55 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-11-23 23:28:55 +0000 |
commit | 96702ca945a8deac1f989584f2b25d1a16d14b72 (patch) | |
tree | 4de934d94214ca3b46dbce6de8dabe4517bd5247 /shell | |
parent | 8ec6ee47f1e70ff25518ad6455e68d45d7ce1b87 (diff) | |
download | busybox-w32-96702ca945a8deac1f989584f2b25d1a16d14b72.tar.gz busybox-w32-96702ca945a8deac1f989584f2b25d1a16d14b72.tar.bz2 busybox-w32-96702ca945a8deac1f989584f2b25d1a16d14b72.zip |
kill lash. "lash" builtin still exists, but it runs hush.
Diffstat (limited to 'shell')
-rw-r--r-- | shell/Config.in | 17 | ||||
-rw-r--r-- | shell/Kbuild | 1 | ||||
-rw-r--r-- | shell/hush.c | 10 | ||||
-rw-r--r-- | shell/lash_unused.c (renamed from shell/lash.c) | 0 |
4 files changed, 15 insertions, 13 deletions
diff --git a/shell/Config.in b/shell/Config.in index 312583e87..9328c9102 100644 --- a/shell/Config.in +++ b/shell/Config.in | |||
@@ -20,9 +20,9 @@ config FEATURE_SH_IS_HUSH | |||
20 | select HUSH | 20 | select HUSH |
21 | bool "hush" | 21 | bool "hush" |
22 | 22 | ||
23 | config FEATURE_SH_IS_LASH | 23 | ####config FEATURE_SH_IS_LASH |
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 |
@@ -229,16 +229,9 @@ config HUSH_LOOPS | |||
229 | config LASH | 229 | config LASH |
230 | bool "lash" | 230 | bool "lash" |
231 | default n | 231 | default n |
232 | select TRUE | 232 | select HUSH |
233 | select FALSE | ||
234 | select TEST | ||
235 | help | 233 | help |
236 | lash is the very smallest shell (adds just 10k) and it is quite | 234 | lash is deprecated and will be removed, please migrate to hush. |
237 | usable as a command prompt, but it is not suitable for any but the | ||
238 | most trivial scripting (such as an initrd that calls insmod a few | ||
239 | times) since it does not understand any Bourne shell grammar. It | ||
240 | does handle pipes, redirects, and job control though. Adding in | ||
241 | command editing makes it a very nice lightweight command prompt. | ||
242 | 235 | ||
243 | 236 | ||
244 | config MSH | 237 | config MSH |
diff --git a/shell/Kbuild b/shell/Kbuild index 944eaff51..36a8ffd3a 100644 --- a/shell/Kbuild +++ b/shell/Kbuild | |||
@@ -7,7 +7,6 @@ | |||
7 | lib-y:= | 7 | lib-y:= |
8 | lib-$(CONFIG_ASH) += ash.o | 8 | lib-$(CONFIG_ASH) += ash.o |
9 | lib-$(CONFIG_HUSH) += hush.o | 9 | lib-$(CONFIG_HUSH) += hush.o |
10 | lib-$(CONFIG_LASH) += lash.o | ||
11 | lib-$(CONFIG_MSH) += msh.o | 10 | lib-$(CONFIG_MSH) += msh.o |
12 | 11 | ||
13 | lib-$(CONFIG_CTTYHACK) += cttyhack.o | 12 | lib-$(CONFIG_CTTYHACK) += cttyhack.o |
diff --git a/shell/hush.c b/shell/hush.c index 6bf4d1d19..b3c77aa14 100644 --- a/shell/hush.c +++ b/shell/hush.c | |||
@@ -3925,3 +3925,13 @@ int hush_main(int argc, char **argv) | |||
3925 | #endif | 3925 | #endif |
3926 | hush_exit(opt ? opt : last_return_code); | 3926 | hush_exit(opt ? opt : last_return_code); |
3927 | } | 3927 | } |
3928 | |||
3929 | |||
3930 | #if ENABLE_LASH | ||
3931 | int lash_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | ||
3932 | int lash_main(int argc, char **argv) | ||
3933 | { | ||
3934 | //bb_error_msg("lash is deprecated, please use hush instead"); | ||
3935 | return hush_main(argc, argv); | ||
3936 | } | ||
3937 | #endif | ||
diff --git a/shell/lash.c b/shell/lash_unused.c index 781dfdb5a..781dfdb5a 100644 --- a/shell/lash.c +++ b/shell/lash_unused.c | |||