hush: add HUSH_BASH_COMPAT, make [[ special handling depend on it

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2009-06-10 13:39:35 +02:00
parent 1d77db8459
commit 9ca656b149
2 changed files with 40 additions and 29 deletions

View File

@@ -43,9 +43,6 @@ config ASH
shell (by Herbert Xu), which was created by porting the 'ash' shell
(written by Kenneth Almquist) from NetBSD.
comment "Ash Shell Options"
depends on ASH
config ASH_BASH_COMPAT
bool "bash-compatible extensions"
default y
@@ -169,6 +166,13 @@ config HUSH
It does not handle select, aliases, brace expansion,
tilde expansion, &>file and >&file redirection of stdout+stderr.
config HUSH_BASH_COMPAT
bool "bash-compatible extensions"
default y
depends on HUSH
help
Enable bash-compatible extensions.
config HUSH_HELP
bool "help builtin"
default n
@@ -268,9 +272,6 @@ config MSH
# It uses only vfork, so it can be used on uClinux systems.
comment "Bourne Shell Options"
depends on MSH || LASH || HUSH || ASH
config SH_MATH_SUPPORT
bool "POSIX math support"
default y