| 40 | | |
|---|
| 41 | | config BUSYBOX_CONFIG_FEATURE_SH_IS_HUSH |
|---|
| 42 | | depends BUSYBOX_CONFIG_HUSH |
|---|
| 43 | | bool "hush (busybox)" |
|---|
| 44 | | help |
|---|
| 45 | | hush is a very small shell (just 18k) and it has fairly complete |
|---|
| 46 | | Bourne shell grammar. It even handles all the normal flow control |
|---|
| 47 | | options such as if/then/elif/else/fi, for/in/do/done, while loops, |
|---|
| 48 | | etc. |
|---|
| 49 | | |
|---|
| 50 | | It does not handle case/esac, select, function, here documents ( << |
|---|
| 51 | | word ), arithmetic expansion, aliases, brace expansion, tilde |
|---|
| 52 | | expansion, &> and >& redirection of stdout+stderr, etc. |
|---|
| 53 | | |
|---|
| 54 | | config BUSYBOX_CONFIG_FEATURE_SH_IS_LASH |
|---|
| 55 | | depends BUSYBOX_CONFIG_LASH |
|---|
| 56 | | bool "lash (busybox)" |
|---|
| 57 | | help |
|---|
| 58 | | lash is the very smallest shell (adds just 10k) and it is quite |
|---|
| 59 | | usable as a command prompt, but it is not suitable for any but the |
|---|
| 60 | | most trivial scripting (such as an initrd that calls insmod a few |
|---|
| 61 | | times) since it does not understand any Bourne shell grammar. It |
|---|
| 62 | | does handle pipes, redirects, and job control though. Adding in |
|---|
| 63 | | command editing makes it a very nice lightweight command prompt. |
|---|
| 64 | | |
|---|
| 65 | | config BUSYBOX_CONFIG_FEATURE_SH_IS_MSH |
|---|
| 66 | | depends BUSYBOX_CONFIG_MSH |
|---|
| 67 | | bool "msh (busybox)" |
|---|
| 68 | | help |
|---|
| 69 | | The minix shell (adds just 30k) is quite complete and handles things |
|---|
| 70 | | like for/do/done, case/esac and all the things you expect a Bourne |
|---|
| 71 | | shell to do. It is not always pedantically correct about Bourne |
|---|
| 72 | | shell grammar (try running the shell testscript "tests/sh.testcases" |
|---|
| 73 | | on it and compare vs bash) but for most things it works quite well. |
|---|
| 74 | | It also uses only vfork, so it can be used on uClinux systems. |
|---|