2002-12-05 08:41:41 +00:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
|
|
|
# see scripts/kbuild/config-language.txt.
|
|
|
|
#
|
|
|
|
|
2005-09-24 05:49:36 +00:00
|
|
|
menu "Shells"
|
2002-12-05 08:41:41 +00:00
|
|
|
|
2010-06-08 10:15:11 +00:00
|
|
|
INSERT
|
|
|
|
|
2010-06-06 20:14:58 +00:00
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "Choose which shell is aliased to 'sh' name"
|
|
|
|
default FEATURE_SH_IS_ASH
|
|
|
|
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 11:34:34 +00:00
|
|
|
# note: cannot use "select ASH" here, it breaks "make allnoconfig"
|
2010-06-06 20:14:58 +00:00
|
|
|
config FEATURE_SH_IS_ASH
|
|
|
|
depends on ASH
|
|
|
|
bool "ash"
|
|
|
|
depends on !NOMMU
|
|
|
|
|
|
|
|
config FEATURE_SH_IS_HUSH
|
|
|
|
depends on HUSH
|
|
|
|
bool "hush"
|
|
|
|
|
|
|
|
config FEATURE_SH_IS_NONE
|
|
|
|
bool "none"
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "Choose which shell is aliased to 'bash' name"
|
|
|
|
default FEATURE_BASH_IS_NONE
|
|
|
|
help
|
|
|
|
Choose which shell you want to be executed by 'bash' alias.
|
|
|
|
The ash shell is the most bash compatible and full featured one.
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
config FEATURE_BASH_IS_ASH
|
|
|
|
depends on ASH
|
|
|
|
bool "ash"
|
|
|
|
depends on !NOMMU
|
|
|
|
|
|
|
|
config FEATURE_BASH_IS_HUSH
|
|
|
|
depends on HUSH
|
|
|
|
bool "hush"
|
|
|
|
|
|
|
|
config FEATURE_BASH_IS_NONE
|
|
|
|
bool "none"
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
|
2009-04-02 10:02:37 +00:00
|
|
|
config SH_MATH_SUPPORT
|
|
|
|
bool "POSIX math support"
|
|
|
|
default y
|
|
|
|
depends on ASH || HUSH
|
|
|
|
help
|
|
|
|
Enable math support in the shell via $((...)) syntax.
|
|
|
|
|
|
|
|
config SH_MATH_SUPPORT_64
|
|
|
|
bool "Extend POSIX math support to 64 bit"
|
2010-06-06 02:14:28 +00:00
|
|
|
default y
|
2009-04-02 10:02:37 +00:00
|
|
|
depends on SH_MATH_SUPPORT
|
|
|
|
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 10:17:08 +00:00
|
|
|
config FEATURE_SH_EXTRA_QUIET
|
2004-01-03 12:07:32 +00:00
|
|
|
bool "Hide message on interactive shell startup"
|
2010-06-06 02:14:28 +00:00
|
|
|
default y
|
|
|
|
depends on HUSH || ASH
|
2002-12-05 08:41:41 +00:00
|
|
|
help
|
2004-01-03 12:07:32 +00:00
|
|
|
Remove the busybox introduction when starting a shell.
|
2002-12-05 08:41:41 +00:00
|
|
|
|
2007-04-10 23:03:30 +00:00
|
|
|
config FEATURE_SH_STANDALONE
|
2004-01-03 12:07:32 +00:00
|
|
|
bool "Standalone shell"
|
2002-12-09 11:10:40 +00:00
|
|
|
default n
|
2016-07-22 16:48:38 +00:00
|
|
|
depends on (HUSH || ASH)
|
2002-12-09 11:10:40 +00:00
|
|
|
help
|
2007-05-08 17:27:17 +00:00
|
|
|
This option causes busybox shells to use busybox applets
|
2008-07-22 18:27:53 +00:00
|
|
|
in preference to executables in the PATH whenever possible. For
|
2004-04-07 09:34:27 +00:00
|
|
|
example, entering the command 'ifconfig' into the shell would cause
|
2008-07-22 18:27:53 +00:00
|
|
|
busybox to use the ifconfig busybox applet. Specifying the fully
|
2004-04-07 09:34:27 +00:00
|
|
|
qualified executable name, such as '/sbin/ifconfig' will still
|
2008-07-22 18:27:53 +00:00
|
|
|
execute the /sbin/ifconfig executable on the filesystem. This option
|
2006-03-03 19:02:50 +00:00
|
|
|
is generally used when creating a statically linked version of busybox
|
2004-04-07 09:34:27 +00:00
|
|
|
for use as a rescue shell, in the event that you screw up your system.
|
2002-12-05 08:41:41 +00:00
|
|
|
|
2007-05-08 17:27:17 +00:00
|
|
|
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 18:27:53 +00:00
|
|
|
# over shell builtins of the same name. So turning this on will
|
2007-05-08 17:27:17 +00:00
|
|
|
# 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 18:27:53 +00:00
|
|
|
# run '/bin/busybox'. If you do not have the busybox binary sitting in
|
2007-05-08 17:27:17 +00:00
|
|
|
# that exact location with that exact name, this option will not work at
|
|
|
|
# all.
|
2004-09-24 01:25:39 +00:00
|
|
|
|
2008-04-12 20:07:53 +00:00
|
|
|
config FEATURE_SH_NOFORK
|
|
|
|
bool "Run 'nofork' applets directly"
|
|
|
|
default n
|
2016-07-22 16:48:38 +00:00
|
|
|
depends on (HUSH || ASH)
|
2008-04-12 20:07:53 +00:00
|
|
|
help
|
2011-02-02 17:38:57 +00:00
|
|
|
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-12 20:07:53 +00:00
|
|
|
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 17:38:57 +00:00
|
|
|
This feature is relatively new. Use with care. Report bugs
|
|
|
|
to project mailing list.
|
2008-04-12 20:07:53 +00:00
|
|
|
|
2011-03-31 11:16:52 +00:00
|
|
|
config FEATURE_SH_HISTFILESIZE
|
|
|
|
bool "Use $HISTFILESIZE"
|
|
|
|
default y
|
|
|
|
depends on HUSH || ASH
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
2002-12-05 08:41:41 +00:00
|
|
|
endmenu
|