hush: add 3 CONFIG_xxx, allowing for smaller and less capable hush.

Minimal hush is ~9k now (lash is ~7k).
This commit is contained in:
Denis Vlasenko
2007-05-21 23:30:54 +00:00
parent 8805eeb44a
commit 0681033918
2 changed files with 107 additions and 36 deletions

View File

@@ -176,6 +176,12 @@ config HUSH
word ), arithmetic expansion, aliases, brace expansion, tilde
expansion, &> and >& redirection of stdout+stderr, etc.
config HUSH_HELP
bool "help builtin"
default n
help
Enable help builtin in hush. Code size + ~1 kbyte.
config HUSH_INTERACTIVE
bool "Interactive mode"
default y
@@ -203,6 +209,18 @@ config HUSH_TICK
help
Enable process substitution `command` and $(command) in hush.
config HUSH_IF
bool "Support if/then/elif/else/fi"
default n
help
Enable if/then/elif/else/fi in hush.
config HUSH_LOOPS
bool "Support for, while and until loops"
default n
help
Enable for, while and until loops in hush.
config LASH
bool "lash"
default n