| 1 | # $FreeWRT$
|
|---|
| 2 |
|
|---|
| 3 | comment "/bin/sh"
|
|---|
| 4 | choice
|
|---|
| 5 | prompt "Choose your default shell"
|
|---|
| 6 | default BUSYBOX_CONFIG_FEATURE_SH_IS_ASH
|
|---|
| 7 | help
|
|---|
| 8 | Choose a shell which is to be used for /bin/sh.
|
|---|
| 9 | The ash shell is the most bash-compatible shell
|
|---|
| 10 | and full-featured one in busybox; mksh is a bit
|
|---|
| 11 | more heavy-weight but feature-complete.
|
|---|
| 12 |
|
|---|
| 13 | config BUSYBOX_CONFIG_FEATURE_SH_IS_ASH
|
|---|
| 14 | select BUSYBOX_CONFIG_ASH
|
|---|
| 15 | bool "ash (busybox)"
|
|---|
| 16 | help
|
|---|
| 17 | Tha 'ash' shell adds about 60k in the default configuration and is
|
|---|
| 18 | the most complete and most pedantically correct shell included with
|
|---|
| 19 | busybox. This shell is actually a derivative of the Debian 'dash'
|
|---|
| 20 | shell (by Herbert Xu), which was created by porting the 'ash' shell
|
|---|
| 21 | (written by Kenneth Almquist) from NetBSD.
|
|---|
| 22 |
|
|---|
| 23 | config FWRT_PACKAGE_MKSH_AS_BINSH
|
|---|
| 24 | select FWRT_PACKAGE_MKSH
|
|---|
| 25 | select BUSYBOX_CONFIG_FEATURE_SH_IS_NONE
|
|---|
| 26 | bool "mksh"
|
|---|
| 27 | help
|
|---|
| 28 | mksh is the MirBSD enhanced version of the Public Domain Korn
|
|---|
| 29 | shell (pdksh), a bourne-compatible shell which is largely similar
|
|---|
| 30 | to the original AT&T Korn shell. It includes bug fixes and
|
|---|
| 31 | feature improvements in order to produce a modern, robust shell
|
|---|
| 32 | good for interactive and especially script use. Some sh/ksh/pdksh
|
|---|
| 33 | compatibility kludges have been removed.
|
|---|
| 34 |
|
|---|
| 35 | config BUSYBOX_CONFIG_FEATURE_SH_IS_HUSH
|
|---|
| 36 | select BUSYBOX_CONFIG_HUSH
|
|---|
| 37 | bool "hush (busybox)"
|
|---|
| 38 | help
|
|---|
| 39 | hush is a very small shell (just 18k) and it has fairly complete
|
|---|
| 40 | Bourne shell grammar. It even handles all the normal flow control
|
|---|
| 41 | options such as if/then/elif/else/fi, for/in/do/done, while loops,
|
|---|
| 42 | etc.
|
|---|
| 43 |
|
|---|
| 44 | It does not handle case/esac, select, function, here documents ( <<
|
|---|
| 45 | word ), arithmetic expansion, aliases, brace expansion, tilde
|
|---|
| 46 | expansion, &> and >& redirection of stdout+stderr, etc.
|
|---|
| 47 |
|
|---|
| 48 | config BUSYBOX_CONFIG_FEATURE_SH_IS_LASH
|
|---|
| 49 | select BUSYBOX_CONFIG_LASH
|
|---|
| 50 | bool "lash (busybox)"
|
|---|
| 51 | help
|
|---|
| 52 | lash is the very smallest shell (adds just 10k) and it is quite
|
|---|
| 53 | usable as a command prompt, but it is not suitable for any but the
|
|---|
| 54 | most trivial scripting (such as an initrd that calls insmod a few
|
|---|
| 55 | times) since it does not understand any Bourne shell grammar. It
|
|---|
| 56 | does handle pipes, redirects, and job control though. Adding in
|
|---|
| 57 | command editing makes it a very nice lightweight command prompt.
|
|---|
| 58 |
|
|---|
| 59 | config BUSYBOX_CONFIG_FEATURE_SH_IS_MSH
|
|---|
| 60 | select BUSYBOX_CONFIG_MSH
|
|---|
| 61 | bool "msh (busybox)"
|
|---|
| 62 | help
|
|---|
| 63 | The minix shell (adds just 30k) is quite complete and handles things
|
|---|
| 64 | like for/do/done, case/esac and all the things you expect a Bourne
|
|---|
| 65 | shell to do. It is not always pedantically correct about Bourne
|
|---|
| 66 | shell grammar (try running the shell testscript "tests/sh.testcases"
|
|---|
| 67 | on it and compare vs bash) but for most things it works quite well.
|
|---|
| 68 | It also uses only vfork, so it can be used on uClinux systems.
|
|---|
| 69 |
|
|---|
| 70 | endchoice
|
|---|