blob: 7f5f6705078787e4deeebac7b188457bc3146bf3 [file] [log] [blame]
Eric Andersenc9f20d92002-12-05 08:41:41 +00001#
2# For a description of the syntax of this configuration file,
3# see scripts/kbuild/config-language.txt.
4#
5
Mike Frysinger9ac178a2005-09-24 05:49:36 +00006menu "Shells"
Eric Andersenc9f20d92002-12-05 08:41:41 +00007
Denys Vlasenkoc8aae0b2010-06-06 22:14:58 +02008
9choice
10 prompt "Choose which shell is aliased to 'sh' name"
Denys Vlasenko0b883582016-12-23 16:49:07 +010011 default SH_IS_ASH
Denys Vlasenkoc8aae0b2010-06-06 22:14:58 +020012 help
13 Choose which shell you want to be executed by 'sh' alias.
14 The ash shell is the most bash compatible and full featured one.
15
Denys Vlasenko121fb952010-06-07 13:34:34 +020016# note: cannot use "select ASH" here, it breaks "make allnoconfig"
Denys Vlasenko0b883582016-12-23 16:49:07 +010017config SH_IS_ASH
Denys Vlasenkoc8aae0b2010-06-06 22:14:58 +020018 depends on !NOMMU
Denys Vlasenko0b883582016-12-23 16:49:07 +010019 bool "ash"
Denys Vlasenkoc8aae0b2010-06-06 22:14:58 +020020
Denys Vlasenko0b883582016-12-23 16:49:07 +010021config SH_IS_HUSH
Denys Vlasenkoc8aae0b2010-06-06 22:14:58 +020022 bool "hush"
23
Denys Vlasenko0b883582016-12-23 16:49:07 +010024config SH_IS_NONE
Denys Vlasenkoc8aae0b2010-06-06 22:14:58 +020025 bool "none"
26
27endchoice
28
29choice
30 prompt "Choose which shell is aliased to 'bash' name"
Denys Vlasenko0b883582016-12-23 16:49:07 +010031 default BASH_IS_NONE
Denys Vlasenkoc8aae0b2010-06-06 22:14:58 +020032 help
33 Choose which shell you want to be executed by 'bash' alias.
34 The ash shell is the most bash compatible and full featured one.
35
36 Note that selecting this option does not switch on any bash
37 compatibility code. It merely makes it possible to install
38 /bin/bash (sym)link and run scripts which start with
39 #!/bin/bash line.
40
41 Many systems use it in scripts which use bash-specific features,
42 even simple ones like $RANDOM. Without this option, busybox
43 can't be used for running them because it won't recongnize
44 "bash" as a supported applet name.
45
Denys Vlasenko0b883582016-12-23 16:49:07 +010046config BASH_IS_ASH
Denys Vlasenkoc8aae0b2010-06-06 22:14:58 +020047 depends on !NOMMU
Denys Vlasenko0b883582016-12-23 16:49:07 +010048 bool "ash"
Denys Vlasenkoc8aae0b2010-06-06 22:14:58 +020049
Denys Vlasenko0b883582016-12-23 16:49:07 +010050config BASH_IS_HUSH
Denys Vlasenkoc8aae0b2010-06-06 22:14:58 +020051 bool "hush"
52
Denys Vlasenko0b883582016-12-23 16:49:07 +010053config BASH_IS_NONE
Denys Vlasenkoc8aae0b2010-06-06 22:14:58 +020054 bool "none"
55
56endchoice
57
58
Denys Vlasenko0b883582016-12-23 16:49:07 +010059INSERT
60
61
62config FEATURE_SH_MATH
Mike Frysinger98c52642009-04-02 10:02:37 +000063 bool "POSIX math support"
64 default y
Denys Vlasenko0b883582016-12-23 16:49:07 +010065 depends on ASH || HUSH || SH_IS_ASH || BASH_IS_ASH || SH_IS_HUSH || BASH_IS_HUSH
Mike Frysinger98c52642009-04-02 10:02:37 +000066 help
67 Enable math support in the shell via $((...)) syntax.
68
Denys Vlasenko0b883582016-12-23 16:49:07 +010069config FEATURE_SH_MATH_64
Mike Frysinger98c52642009-04-02 10:02:37 +000070 bool "Extend POSIX math support to 64 bit"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +020071 default y
Denys Vlasenko0b883582016-12-23 16:49:07 +010072 depends on FEATURE_SH_MATH
Mike Frysinger98c52642009-04-02 10:02:37 +000073 help
74 Enable 64-bit math support in the shell. This will make the shell
75 slightly larger, but will allow computation with very large numbers.
76 This is not in POSIX, so do not rely on this in portable code.
77
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000078config FEATURE_SH_EXTRA_QUIET
Glenn L McGrath3b251852004-01-03 12:07:32 +000079 bool "Hide message on interactive shell startup"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +020080 default y
Denys Vlasenko0b883582016-12-23 16:49:07 +010081 depends on ASH || HUSH || SH_IS_ASH || BASH_IS_ASH || SH_IS_HUSH || BASH_IS_HUSH
Eric Andersenc9f20d92002-12-05 08:41:41 +000082 help
Glenn L McGrath3b251852004-01-03 12:07:32 +000083 Remove the busybox introduction when starting a shell.
Eric Andersenc9f20d92002-12-05 08:41:41 +000084
Denis Vlasenko80d14be2007-04-10 23:03:30 +000085config FEATURE_SH_STANDALONE
Eric Andersenc9f20d92002-12-05 08:41:41 +000086 bool "Standalone shell"
87 default n
Denys Vlasenko0b883582016-12-23 16:49:07 +010088 depends on ASH || HUSH || SH_IS_ASH || BASH_IS_ASH || SH_IS_HUSH || BASH_IS_HUSH
Eric Andersenc9f20d92002-12-05 08:41:41 +000089 help
Denis Vlasenko92c0b822007-05-08 17:27:17 +000090 This option causes busybox shells to use busybox applets
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +000091 in preference to executables in the PATH whenever possible. For
Eric Andersen075dd812004-04-07 09:34:27 +000092 example, entering the command 'ifconfig' into the shell would cause
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +000093 busybox to use the ifconfig busybox applet. Specifying the fully
Eric Andersen075dd812004-04-07 09:34:27 +000094 qualified executable name, such as '/sbin/ifconfig' will still
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +000095 execute the /sbin/ifconfig executable on the filesystem. This option
Rob Landley06ec8cf2006-03-03 19:02:50 +000096 is generally used when creating a statically linked version of busybox
Eric Andersen075dd812004-04-07 09:34:27 +000097 for use as a rescue shell, in the event that you screw up your system.
Eric Andersenc9f20d92002-12-05 08:41:41 +000098
Denis Vlasenko92c0b822007-05-08 17:27:17 +000099 This is implemented by re-execing /proc/self/exe (typically)
100 with right parameters. Some selected applets ("NOFORK" applets)
101 can even be executed without creating new process.
102 Instead, busybox will call <applet>_main() internally.
Paul Fox6ab03782006-06-08 21:37:26 +0000103
Denis Vlasenko92c0b822007-05-08 17:27:17 +0000104 However, this causes problems in chroot jails without mounted /proc
105 and with ps/top (command name can be shown as 'exe' for applets
106 started this way).
107# untrue?
108# Note that this will *also* cause applets to take precedence
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000109# over shell builtins of the same name. So turning this on will
Denis Vlasenko92c0b822007-05-08 17:27:17 +0000110# eliminate any performance gained by turning on the builtin "echo"
111# and "test" commands in ash.
112# untrue?
113# Note that when using this option, the shell will attempt to directly
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000114# run '/bin/busybox'. If you do not have the busybox binary sitting in
Denis Vlasenko92c0b822007-05-08 17:27:17 +0000115# that exact location with that exact name, this option will not work at
116# all.
Eric Andersen6f8542b2004-09-24 01:25:39 +0000117
Denis Vlasenko9bc80d72008-04-12 20:07:53 +0000118config FEATURE_SH_NOFORK
119 bool "Run 'nofork' applets directly"
120 default n
Denys Vlasenko0b883582016-12-23 16:49:07 +0100121 depends on ASH || HUSH || SH_IS_ASH || BASH_IS_ASH || SH_IS_HUSH || BASH_IS_HUSH
Denis Vlasenko9bc80d72008-04-12 20:07:53 +0000122 help
Denys Vlasenkob72baeb2011-02-02 18:38:57 +0100123 This option causes busybox shells to not execute typical
124 fork/exec/wait sequence, but call <applet>_main directly,
125 if possible. (Sometimes it is not possible: for example,
Denis Vlasenko9bc80d72008-04-12 20:07:53 +0000126 this is not possible in pipes).
127
128 This will be done only for some applets (those which are marked
129 NOFORK in include/applets.h).
130
131 This may significantly speed up some shell scripts.
132
Denys Vlasenkob72baeb2011-02-02 18:38:57 +0100133 This feature is relatively new. Use with care. Report bugs
134 to project mailing list.
Denis Vlasenko9bc80d72008-04-12 20:07:53 +0000135
Denys Vlasenko2c4de5b2011-03-31 13:16:52 +0200136config FEATURE_SH_HISTFILESIZE
137 bool "Use $HISTFILESIZE"
138 default y
Denys Vlasenko0b883582016-12-23 16:49:07 +0100139 depends on ASH || HUSH || SH_IS_ASH || BASH_IS_ASH || SH_IS_HUSH || BASH_IS_HUSH
Denys Vlasenko2c4de5b2011-03-31 13:16:52 +0200140 help
141 This option makes busybox shells to use $HISTFILESIZE variable
142 to set shell history size. Note that its max value is capped
143 by "History size" setting in library tuning section.
144
145
Eric Andersenc9f20d92002-12-05 08:41:41 +0000146endmenu