aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-11-23 23:28:55 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-11-23 23:28:55 +0000
commit96702ca945a8deac1f989584f2b25d1a16d14b72 (patch)
tree4de934d94214ca3b46dbce6de8dabe4517bd5247 /shell
parent8ec6ee47f1e70ff25518ad6455e68d45d7ce1b87 (diff)
downloadbusybox-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.in17
-rw-r--r--shell/Kbuild1
-rw-r--r--shell/hush.c10
-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
23config FEATURE_SH_IS_LASH 23####config FEATURE_SH_IS_LASH
24 select LASH 24#### select LASH
25 bool "lash" 25#### bool "lash"
26 26
27config FEATURE_SH_IS_MSH 27config FEATURE_SH_IS_MSH
28 select MSH 28 select MSH
@@ -229,16 +229,9 @@ config HUSH_LOOPS
229config LASH 229config 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
244config MSH 237config MSH
diff --git a/shell/Kbuild b/shell/Kbuild
index 944eaff51..36a8ffd3a 100644
--- a/shell/Kbuild
+++ b/shell/Kbuild
@@ -7,7 +7,6 @@
7lib-y:= 7lib-y:=
8lib-$(CONFIG_ASH) += ash.o 8lib-$(CONFIG_ASH) += ash.o
9lib-$(CONFIG_HUSH) += hush.o 9lib-$(CONFIG_HUSH) += hush.o
10lib-$(CONFIG_LASH) += lash.o
11lib-$(CONFIG_MSH) += msh.o 10lib-$(CONFIG_MSH) += msh.o
12 11
13lib-$(CONFIG_CTTYHACK) += cttyhack.o 12lib-$(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
3931int lash_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
3932int 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