kill lash. "lash" builtin still exists, but it runs hush.

This commit is contained in:
Denis Vlasenko
2007-11-23 23:28:55 +00:00
parent 8ec6ee47f1
commit 96702ca945
7 changed files with 19 additions and 31 deletions

View File

@@ -20,9 +20,9 @@ config FEATURE_SH_IS_HUSH
select HUSH
bool "hush"
config FEATURE_SH_IS_LASH
select LASH
bool "lash"
####config FEATURE_SH_IS_LASH
#### select LASH
#### bool "lash"
config FEATURE_SH_IS_MSH
select MSH
@@ -229,16 +229,9 @@ config HUSH_LOOPS
config LASH
bool "lash"
default n
select TRUE
select FALSE
select TEST
select HUSH
help
lash is the very smallest shell (adds just 10k) and it is quite
usable as a command prompt, but it is not suitable for any but the
most trivial scripting (such as an initrd that calls insmod a few
times) since it does not understand any Bourne shell grammar. It
does handle pipes, redirects, and job control though. Adding in
command editing makes it a very nice lightweight command prompt.
lash is deprecated and will be removed, please migrate to hush.
config MSH

View File

@@ -7,7 +7,6 @@
lib-y:=
lib-$(CONFIG_ASH) += ash.o
lib-$(CONFIG_HUSH) += hush.o
lib-$(CONFIG_LASH) += lash.o
lib-$(CONFIG_MSH) += msh.o
lib-$(CONFIG_CTTYHACK) += cttyhack.o

View File

@@ -3925,3 +3925,13 @@ int hush_main(int argc, char **argv)
#endif
hush_exit(opt ? opt : last_return_code);
}
#if ENABLE_LASH
int lash_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
int lash_main(int argc, char **argv)
{
//bb_error_msg("lash is deprecated, please use hush instead");
return hush_main(argc, argv);
}
#endif