hush: make set -x support optional

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2010-07-16 12:36:14 +02:00
parent 3f5fae0772
commit 202a2d1219
5 changed files with 147 additions and 127 deletions

View File

@@ -110,112 +110,6 @@ config ASH_EXPAND_PRMT
This option recreates the prompt string from the environment
variable each time it is displayed.
config HUSH
bool "hush"
default y
help
hush is a small shell (22k). It handles the normal flow control
constructs such as if/then/elif/else/fi, for/in/do/done, while loops,
case/esac. Redirections, here documents, $((arithmetic))
and functions are supported.
It will compile and work on no-mmu systems.
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 y
depends on HUSH
help
Enable help builtin in hush. Code size + ~1 kbyte.
config HUSH_INTERACTIVE
bool "Interactive mode"
default y
depends on HUSH
help
Enable interactive mode (prompt and command editing).
Without this, hush simply reads and executes commands
from stdin just like a shell script from a file.
No prompt, no PS1/PS2 magic shell variables.
config HUSH_JOB
bool "Job control"
default y
depends on HUSH_INTERACTIVE
help
Enable job control: Ctrl-Z backgrounds, Ctrl-C interrupts current
command (not entire shell), fg/bg builtins work. Without this option,
"cmd &" still works by simply spawning a process and immediately
prompting for next command (or executing next command in a script),
but no separate process group is formed.
config HUSH_TICK
bool "Process substitution"
default y
depends on HUSH
help
Enable process substitution `command` and $(command) in hush.
config HUSH_IF
bool "Support if/then/elif/else/fi"
default y
depends on HUSH
help
Enable if/then/elif/else/fi in hush.
config HUSH_LOOPS
bool "Support for, while and until loops"
default y
depends on HUSH
help
Enable for, while and until loops in hush.
config HUSH_CASE
bool "Support case ... esac statement"
default y
depends on HUSH
help
Enable case ... esac statement in hush. +400 bytes.
config HUSH_FUNCTIONS
bool "Support funcname() { commands; } syntax"
default y
depends on HUSH
help
Enable support for shell functions in hush. +800 bytes.
config HUSH_LOCAL
bool "Support local builtin"
default y
depends on HUSH_FUNCTIONS
help
Enable support for local variables in functions.
config HUSH_EXPORT_N
bool "Support export '-n' option"
default y
depends on HUSH
help
Enable support for export '-n' option in hush. It is a bash extension.
config HUSH_RANDOM_SUPPORT
bool "Pseudorandom generator and $RANDOM variable"
default y
depends on HUSH
help
Enable pseudorandom generator and dynamic variable "$RANDOM".
Each read of "$RANDOM" will generate a new pseudorandom value.
choice
prompt "Choose which shell is aliased to 'sh' name"