2002-12-05 14:11:41 +05:30
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
|
|
|
# see scripts/kbuild/config-language.txt.
|
|
|
|
#
|
|
|
|
|
2005-09-24 11:19:36 +05:30
|
|
|
menu "Shells"
|
2002-12-05 14:11:41 +05:30
|
|
|
|
2010-06-07 01:44:58 +05:30
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "Choose which shell is aliased to 'sh' name"
|
2016-12-23 21:19:07 +05:30
|
|
|
default SH_IS_ASH
|
2010-06-07 01:44:58 +05:30
|
|
|
help
|
|
|
|
Choose which shell you want to be executed by 'sh' alias.
|
|
|
|
The ash shell is the most bash compatible and full featured one.
|
|
|
|
|
2010-06-07 17:04:34 +05:30
|
|
|
# note: cannot use "select ASH" here, it breaks "make allnoconfig"
|
2016-12-23 21:19:07 +05:30
|
|
|
config SH_IS_ASH
|
2010-06-07 01:44:58 +05:30
|
|
|
depends on !NOMMU
|
2016-12-23 21:19:07 +05:30
|
|
|
bool "ash"
|
2017-01-04 16:59:04 +05:30
|
|
|
help
|
|
|
|
Choose ash to be the shell executed by 'sh' name.
|
|
|
|
The ash code will be built into busybox. If you don't select
|
|
|
|
"ash" choice (CONFIG_ASH), this shell may only be invoked by
|
|
|
|
the name 'sh' (and not 'ash').
|
2010-06-07 01:44:58 +05:30
|
|
|
|
2016-12-23 21:19:07 +05:30
|
|
|
config SH_IS_HUSH
|
2010-06-07 01:44:58 +05:30
|
|
|
bool "hush"
|
2017-01-04 16:59:04 +05:30
|
|
|
help
|
|
|
|
Choose hush to be the shell executed by 'sh' name.
|
|
|
|
The hush code will be built into busybox. If you don't select
|
|
|
|
"hush" choice (CONFIG_HUSH), this shell may only be invoked by
|
|
|
|
the name 'sh' (and not 'hush').
|
2010-06-07 01:44:58 +05:30
|
|
|
|
2016-12-23 21:19:07 +05:30
|
|
|
config SH_IS_NONE
|
2010-06-07 01:44:58 +05:30
|
|
|
bool "none"
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "Choose which shell is aliased to 'bash' name"
|
2016-12-23 21:19:07 +05:30
|
|
|
default BASH_IS_NONE
|
2010-06-07 01:44:58 +05:30
|
|
|
help
|
|
|
|
Choose which shell you want to be executed by 'bash' alias.
|
2017-01-04 16:59:04 +05:30
|
|
|
The ash shell is the most bash compatible and full featured one,
|
|
|
|
although compatibility is far from being complete.
|
2010-06-07 01:44:58 +05:30
|
|
|
|
|
|
|
Note that selecting this option does not switch on any bash
|
|
|
|
compatibility code. It merely makes it possible to install
|
|
|
|
/bin/bash (sym)link and run scripts which start with
|
|
|
|
#!/bin/bash line.
|
|
|
|
|
|
|
|
Many systems use it in scripts which use bash-specific features,
|
|
|
|
even simple ones like $RANDOM. Without this option, busybox
|
|
|
|
can't be used for running them because it won't recongnize
|
|
|
|
"bash" as a supported applet name.
|
|
|
|
|
2016-12-23 21:19:07 +05:30
|
|
|
config BASH_IS_ASH
|
2010-06-07 01:44:58 +05:30
|
|
|
depends on !NOMMU
|
2016-12-23 21:19:07 +05:30
|
|
|
bool "ash"
|
2017-01-04 16:59:04 +05:30
|
|
|
help
|
|
|
|
Choose ash to be the shell executed by 'bash' name.
|
|
|
|
The ash code will be built into busybox. If you don't select
|
|
|
|
"ash" choice (CONFIG_ASH), this shell may only be invoked by
|
|
|
|
the name 'bash' (and not 'ash').
|
2010-06-07 01:44:58 +05:30
|
|
|
|
2016-12-23 21:19:07 +05:30
|
|
|
config BASH_IS_HUSH
|
2010-06-07 01:44:58 +05:30
|
|
|
bool "hush"
|
2017-01-04 16:59:04 +05:30
|
|
|
help
|
|
|
|
Choose hush to be the shell executed by 'bash' name.
|
|
|
|
The hush code will be built into busybox. If you don't select
|
|
|
|
"hush" choice (CONFIG_HUSH), this shell may only be invoked by
|
|
|
|
the name 'bash' (and not 'hush').
|
2010-06-07 01:44:58 +05:30
|
|
|
|
2016-12-23 21:19:07 +05:30
|
|
|
config BASH_IS_NONE
|
2010-06-07 01:44:58 +05:30
|
|
|
bool "none"
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
|
2016-12-23 21:19:07 +05:30
|
|
|
INSERT
|
|
|
|
|
|
|
|
|
2017-01-06 21:32:03 +05:30
|
|
|
comment "Options common to all shells"
|
|
|
|
if ASH || HUSH || SH_IS_ASH || BASH_IS_ASH || SH_IS_HUSH || BASH_IS_HUSH
|
|
|
|
|
2016-12-23 21:19:07 +05:30
|
|
|
config FEATURE_SH_MATH
|
2009-04-02 15:32:37 +05:30
|
|
|
bool "POSIX math support"
|
|
|
|
default y
|
2016-12-23 21:19:07 +05:30
|
|
|
depends on ASH || HUSH || SH_IS_ASH || BASH_IS_ASH || SH_IS_HUSH || BASH_IS_HUSH
|
2009-04-02 15:32:37 +05:30
|
|
|
help
|
|
|
|
Enable math support in the shell via $((...)) syntax.
|
|
|
|
|
2016-12-23 21:19:07 +05:30
|
|
|
config FEATURE_SH_MATH_64
|
2009-04-02 15:32:37 +05:30
|
|
|
bool "Extend POSIX math support to 64 bit"
|
2010-06-06 07:44:28 +05:30
|
|
|
default y
|
2016-12-23 21:19:07 +05:30
|
|
|
depends on FEATURE_SH_MATH
|
2009-04-02 15:32:37 +05:30
|
|
|
help
|
|
|
|
Enable 64-bit math support in the shell. This will make the shell
|
|
|
|
slightly larger, but will allow computation with very large numbers.
|
|
|
|
This is not in POSIX, so do not rely on this in portable code.
|
|
|
|
|
2006-10-05 15:47:08 +05:30
|
|
|
config FEATURE_SH_EXTRA_QUIET
|
2004-01-03 17:37:32 +05:30
|
|
|
bool "Hide message on interactive shell startup"
|
2010-06-06 07:44:28 +05:30
|
|
|
default y
|
2016-12-23 21:19:07 +05:30
|
|
|
depends on ASH || HUSH || SH_IS_ASH || BASH_IS_ASH || SH_IS_HUSH || BASH_IS_HUSH
|
2002-12-05 14:11:41 +05:30
|
|
|
help
|
2004-01-03 17:37:32 +05:30
|
|
|
Remove the busybox introduction when starting a shell.
|
2002-12-05 14:11:41 +05:30
|
|
|
|
2007-04-11 04:33:30 +05:30
|
|
|
config FEATURE_SH_STANDALONE
|
2004-01-03 17:37:32 +05:30
|
|
|
bool "Standalone shell"
|
2002-12-09 16:40:40 +05:30
|
|
|
default n
|
2016-12-23 21:19:07 +05:30
|
|
|
depends on ASH || HUSH || SH_IS_ASH || BASH_IS_ASH || SH_IS_HUSH || BASH_IS_HUSH
|
2002-12-09 16:40:40 +05:30
|
|
|
help
|
2007-05-08 22:57:17 +05:30
|
|
|
This option causes busybox shells to use busybox applets
|
2008-07-22 23:57:53 +05:30
|
|
|
in preference to executables in the PATH whenever possible. For
|
2004-04-07 15:04:27 +05:30
|
|
|
example, entering the command 'ifconfig' into the shell would cause
|
2008-07-22 23:57:53 +05:30
|
|
|
busybox to use the ifconfig busybox applet. Specifying the fully
|
2004-04-07 15:04:27 +05:30
|
|
|
qualified executable name, such as '/sbin/ifconfig' will still
|
2008-07-22 23:57:53 +05:30
|
|
|
execute the /sbin/ifconfig executable on the filesystem. This option
|
2006-03-04 00:32:50 +05:30
|
|
|
is generally used when creating a statically linked version of busybox
|
2004-04-07 15:04:27 +05:30
|
|
|
for use as a rescue shell, in the event that you screw up your system.
|
2002-12-05 14:11:41 +05:30
|
|
|
|
2007-05-08 22:57:17 +05:30
|
|
|
This is implemented by re-execing /proc/self/exe (typically)
|
|
|
|
with right parameters. Some selected applets ("NOFORK" applets)
|
|
|
|
can even be executed without creating new process.
|
|
|
|
Instead, busybox will call <applet>_main() internally.
|
|
|
|
|
|
|
|
However, this causes problems in chroot jails without mounted /proc
|
|
|
|
and with ps/top (command name can be shown as 'exe' for applets
|
|
|
|
started this way).
|
|
|
|
# untrue?
|
|
|
|
# Note that this will *also* cause applets to take precedence
|
2008-07-22 23:57:53 +05:30
|
|
|
# over shell builtins of the same name. So turning this on will
|
2007-05-08 22:57:17 +05:30
|
|
|
# eliminate any performance gained by turning on the builtin "echo"
|
|
|
|
# and "test" commands in ash.
|
|
|
|
# untrue?
|
|
|
|
# Note that when using this option, the shell will attempt to directly
|
2008-07-22 23:57:53 +05:30
|
|
|
# run '/bin/busybox'. If you do not have the busybox binary sitting in
|
2007-05-08 22:57:17 +05:30
|
|
|
# that exact location with that exact name, this option will not work at
|
|
|
|
# all.
|
2004-09-24 06:55:39 +05:30
|
|
|
|
2008-04-13 01:37:53 +05:30
|
|
|
config FEATURE_SH_NOFORK
|
|
|
|
bool "Run 'nofork' applets directly"
|
|
|
|
default n
|
2016-12-23 21:19:07 +05:30
|
|
|
depends on ASH || HUSH || SH_IS_ASH || BASH_IS_ASH || SH_IS_HUSH || BASH_IS_HUSH
|
2008-04-13 01:37:53 +05:30
|
|
|
help
|
2011-02-02 23:08:57 +05:30
|
|
|
This option causes busybox shells to not execute typical
|
|
|
|
fork/exec/wait sequence, but call <applet>_main directly,
|
|
|
|
if possible. (Sometimes it is not possible: for example,
|
2008-04-13 01:37:53 +05:30
|
|
|
this is not possible in pipes).
|
|
|
|
|
|
|
|
This will be done only for some applets (those which are marked
|
|
|
|
NOFORK in include/applets.h).
|
|
|
|
|
|
|
|
This may significantly speed up some shell scripts.
|
|
|
|
|
2011-02-02 23:08:57 +05:30
|
|
|
This feature is relatively new. Use with care. Report bugs
|
|
|
|
to project mailing list.
|
2008-04-13 01:37:53 +05:30
|
|
|
|
2011-03-31 16:46:52 +05:30
|
|
|
config FEATURE_SH_HISTFILESIZE
|
|
|
|
bool "Use $HISTFILESIZE"
|
|
|
|
default y
|
2016-12-23 21:19:07 +05:30
|
|
|
depends on ASH || HUSH || SH_IS_ASH || BASH_IS_ASH || SH_IS_HUSH || BASH_IS_HUSH
|
2011-03-31 16:46:52 +05:30
|
|
|
help
|
|
|
|
This option makes busybox shells to use $HISTFILESIZE variable
|
|
|
|
to set shell history size. Note that its max value is capped
|
|
|
|
by "History size" setting in library tuning section.
|
|
|
|
|
2017-01-06 21:32:03 +05:30
|
|
|
endif # Options common to all shells
|
2011-03-31 16:46:52 +05:30
|
|
|
|
2002-12-05 14:11:41 +05:30
|
|
|
endmenu
|