blob: fd73b156e99ce3943f2208bbaab94a250df93d29 [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
8choice
9 prompt "Choose your default shell"
Eric Andersen72d8e442003-08-05 02:18:25 +000010 default CONFIG_FEATURE_SH_IS_NONE
Eric Andersenc9f20d92002-12-05 08:41:41 +000011 help
Eric Andersene5642112003-07-14 19:37:08 +000012 Choose a shell. The ash shell is the most bash compatible
Eric Andersen88c916b2003-10-22 09:58:56 +000013 and full featured one.
Eric Andersenc9f20d92002-12-05 08:41:41 +000014
15config CONFIG_FEATURE_SH_IS_ASH
Eric Andersenb287e2e2003-08-08 23:40:12 +000016 select CONFIG_ASH
Eric Andersenc9f20d92002-12-05 08:41:41 +000017 bool "ash"
18
19config CONFIG_FEATURE_SH_IS_HUSH
Eric Andersenb287e2e2003-08-08 23:40:12 +000020 select CONFIG_HUSH
Eric Andersenc9f20d92002-12-05 08:41:41 +000021 bool "hush"
22
23config CONFIG_FEATURE_SH_IS_LASH
Eric Andersenb287e2e2003-08-08 23:40:12 +000024 select CONFIG_LASH
Eric Andersenc9f20d92002-12-05 08:41:41 +000025 bool "lash"
26
27config CONFIG_FEATURE_SH_IS_MSH
Eric Andersenb287e2e2003-08-08 23:40:12 +000028 select CONFIG_MSH
Eric Andersenc9f20d92002-12-05 08:41:41 +000029 bool "msh"
30
Eric Andersena6b90512002-12-06 21:49:59 +000031config CONFIG_FEATURE_SH_IS_NONE
32 bool "none"
33
Eric Andersenc9f20d92002-12-05 08:41:41 +000034endchoice
35
Eric Andersenc9f20d92002-12-05 08:41:41 +000036config CONFIG_ASH
37 bool "ash"
Rob Landley49576c02006-01-30 06:11:42 +000038 default n
Bernhard Reutner-Fischer96002bb2006-01-19 14:42:23 +000039 select CONFIG_TEST
Eric Andersenc9f20d92002-12-05 08:41:41 +000040 help
Eric Andersenb287e2e2003-08-08 23:40:12 +000041 Tha 'ash' shell adds about 60k in the default configuration and is
42 the most complete and most pedantically correct shell included with
Eric Andersen88c916b2003-10-22 09:58:56 +000043 busybox. This shell is actually a derivative of the Debian 'dash'
44 shell (by Herbert Xu), which was created by porting the 'ash' shell
Eric Andersenc7bda1c2004-03-15 08:29:22 +000045 (written by Kenneth Almquist) from NetBSD.
Eric Andersenc9f20d92002-12-05 08:41:41 +000046
47comment "Ash Shell Options"
48 depends on CONFIG_ASH
49
50config CONFIG_ASH_JOB_CONTROL
51 bool " Enable Job control"
52 default y
53 depends on CONFIG_ASH
54 help
Eric Andersene5642112003-07-14 19:37:08 +000055 Enable job control in the ash shell.
Eric Andersenc9f20d92002-12-05 08:41:41 +000056
Paul Fox02eb9342005-09-07 16:56:02 +000057config CONFIG_ASH_READ_NCHARS
Mike Frysinger9ac178a2005-09-24 05:49:36 +000058 bool " Enable 'read -n N' and 'read -s' support"
59 default n
60 depends on CONFIG_ASH
61 help
Paul Fox02eb9342005-09-07 16:56:02 +000062 'read -n N' will return a value after N characters have been read.
63 'read -s' will read without echoing the user's input.
Ned Ludd2123b7c2005-02-09 21:07:23 +000064
Paul Fox02eb9342005-09-07 16:56:02 +000065config CONFIG_ASH_READ_TIMEOUT
Mike Frysinger9ac178a2005-09-24 05:49:36 +000066 bool " Enable 'read -t S' support."
67 default n
68 depends on CONFIG_ASH
69 help
Paul Fox02eb9342005-09-07 16:56:02 +000070 'read -t S' will return a value after S seconds have passed.
71 This implementation will allow fractional seconds, expressed
72 as a decimal fraction, e.g. 'read -t 2.5 foo'.
Ned Ludd2123b7c2005-02-09 21:07:23 +000073
Eric Andersenc9f20d92002-12-05 08:41:41 +000074config CONFIG_ASH_ALIAS
75 bool " Enable alias support"
76 default y
77 depends on CONFIG_ASH
78 help
Eric Andersene5642112003-07-14 19:37:08 +000079 Enable alias support in the ash shell.
Eric Andersenc9f20d92002-12-05 08:41:41 +000080
81config CONFIG_ASH_MATH_SUPPORT
82 bool " Enable Posix math support"
83 default y
84 depends on CONFIG_ASH
85 help
Eric Andersene5642112003-07-14 19:37:08 +000086 Enable math support in the ash shell.
Eric Andersenc9f20d92002-12-05 08:41:41 +000087
Eric Andersened9ecf72004-06-22 08:29:45 +000088config CONFIG_ASH_MATH_SUPPORT_64
89 bool " Extend Posix math support to 64 bit"
90 default n
91 depends on CONFIG_ASH_MATH_SUPPORT
92 help
93 Enable 64-bit math support in the ash shell. This will make
94 the shell slightly larger, but will allow computation with very
95 large numbers.
96
Eric Andersenc9f20d92002-12-05 08:41:41 +000097config CONFIG_ASH_GETOPTS
Glenn L McGrath53090cd2004-09-24 09:09:44 +000098 bool " Enable getopts builtin to parse positional parameters"
Eric Andersenc9f20d92002-12-05 08:41:41 +000099 default n
100 depends on CONFIG_ASH
101 help
Glenn L McGrath53090cd2004-09-24 09:09:44 +0000102 Enable getopts builtin in the ash shell.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000103
104config CONFIG_ASH_CMDCMD
105 bool " Enable cmdcmd to override shell builtins"
106 default n
107 depends on CONFIG_ASH
108 help
Eric Andersen3857a182003-07-22 10:14:32 +0000109 Enable support for the ash 'command' builtin, which allows
110 you to run the specified command with the specified arguments,
111 even when there is an ash builtin command with the same name.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000112
Paul Fox0b621582005-08-09 19:38:05 +0000113config CONFIG_ASH_BUILTIN_ECHO
114 bool " Enable builtin version of 'echo'"
115 default n
116 depends on CONFIG_ASH
117 help
118 Enable support for echo, built in to ash.
119
120# this entry also appears in coreutils/Config.in, next to the echo applet
121config CONFIG_FEATURE_FANCY_ECHO
122 bool " Enable echo options (-n and -e)"
123 default y
124 depends on CONFIG_ASH_BUILTIN_ECHO
125 help
126 This adds options (-n and -e) to echo.
127
Eric Andersenc9f20d92002-12-05 08:41:41 +0000128config CONFIG_ASH_MAIL
129 bool " Check for new mail on interactive shells"
130 default y
131 depends on CONFIG_ASH
132 help
Eric Andersene5642112003-07-14 19:37:08 +0000133 Enable "check for new mail" in the ash shell.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000134
135config CONFIG_ASH_OPTIMIZE_FOR_SIZE
136 bool " Optimize for size instead of speed"
137 default y
138 depends on CONFIG_ASH
139 help
Rob Landley32251b42006-02-08 18:34:21 +0000140 Compile ash for reduced size at the price of speed.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000141
Eric Andersen16767e22004-03-16 05:14:10 +0000142config CONFIG_ASH_RANDOM_SUPPORT
143 bool " Enable pseudorandom generator and variable $RANDOM"
144 default n
145 depends on CONFIG_ASH
146 help
147 Enable pseudorandom generator and dynamic variable "$RANDOM".
148 Each read of "$RANDOM" will generate a new pseudorandom value.
149 You can reset the generator by using a specified start value.
150 After "unset RANDOM" then generator will switch off and this
151 variable will no longer have special treatment.
152
"Vladimir N. Oleynik"bef14d72005-09-05 13:25:11 +0000153config CONFIG_ASH_EXPAND_PRMT
Rob Landley32251b42006-02-08 18:34:21 +0000154 bool " Expand prompt string"
"Vladimir N. Oleynik"bef14d72005-09-05 13:25:11 +0000155 default n
156 depends on CONFIG_ASH
157 help
Rob Landley32251b42006-02-08 18:34:21 +0000158 "PS#" may be contain volatile content, such as backquote commands.
159 This option recreates the prompt string from the environment
160 variable each time it is displayed.
"Vladimir N. Oleynik"bef14d72005-09-05 13:25:11 +0000161
Eric Andersenc9f20d92002-12-05 08:41:41 +0000162config CONFIG_HUSH
163 bool "hush"
164 default n
Bernhard Reutner-Fischer96002bb2006-01-19 14:42:23 +0000165 select CONFIG_TRUE
166 select CONFIG_FALSE
167 select CONFIG_TEST
Eric Andersenc9f20d92002-12-05 08:41:41 +0000168 help
Eric Andersen88c916b2003-10-22 09:58:56 +0000169 hush is a very small shell (just 18k) and it has fairly complete
170 Bourne shell grammar. It even handles all the normal flow control
171 options such as if/then/elif/else/fi, for/in/do/done, while loops,
172 etc.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000173
Eric Andersenb287e2e2003-08-08 23:40:12 +0000174 It does not handle case/esac, select, function, here documents ( <<
175 word ), arithmetic expansion, aliases, brace expansion, tilde
176 expansion, &> and >& redirection of stdout+stderr, etc.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000177
Eric Andersenc9f20d92002-12-05 08:41:41 +0000178
Eric Andersenc9f20d92002-12-05 08:41:41 +0000179config CONFIG_LASH
180 bool "lash"
181 default n
Bernhard Reutner-Fischer96002bb2006-01-19 14:42:23 +0000182 select CONFIG_TRUE
183 select CONFIG_FALSE
184 select CONFIG_TEST
Eric Andersenc9f20d92002-12-05 08:41:41 +0000185 help
Eric Andersenb287e2e2003-08-08 23:40:12 +0000186 lash is the very smallest shell (adds just 10k) and it is quite
187 usable as a command prompt, but it is not suitable for any but the
188 most trivial scripting (such as an initrd that calls insmod a few
Eric Andersen88c916b2003-10-22 09:58:56 +0000189 times) since it does not understand any Bourne shell grammar. It
Eric Andersenb287e2e2003-08-08 23:40:12 +0000190 does handle pipes, redirects, and job control though. Adding in
191 command editing makes it a very nice lightweight command prompt.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000192
Eric Andersenc9f20d92002-12-05 08:41:41 +0000193
Eric Andersenc9f20d92002-12-05 08:41:41 +0000194config CONFIG_MSH
195 bool "msh"
196 default n
Bernhard Reutner-Fischer96002bb2006-01-19 14:42:23 +0000197 select CONFIG_TRUE
198 select CONFIG_FALSE
199 select CONFIG_TEST
Eric Andersenc9f20d92002-12-05 08:41:41 +0000200 help
Eric Andersenb287e2e2003-08-08 23:40:12 +0000201 The minix shell (adds just 30k) is quite complete and handles things
202 like for/do/done, case/esac and all the things you expect a Bourne
203 shell to do. It is not always pedantically correct about Bourne
Eric Andersen88c916b2003-10-22 09:58:56 +0000204 shell grammar (try running the shell testscript "tests/sh.testcases"
Eric Andersenb287e2e2003-08-08 23:40:12 +0000205 on it and compare vs bash) but for most things it works quite well.
206 It also uses only vfork, so it can be used on uClinux systems.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000207
208comment "Bourne Shell Options"
209 depends on CONFIG_MSH || CONFIG_LASH || CONFIG_HUSH || CONFIG_ASH
210
Glenn L McGrath3b251852004-01-03 12:07:32 +0000211config CONFIG_FEATURE_SH_EXTRA_QUIET
212 bool "Hide message on interactive shell startup"
Eric Andersenc9f20d92002-12-05 08:41:41 +0000213 default n
214 depends on CONFIG_MSH || CONFIG_LASH || CONFIG_HUSH || CONFIG_ASH
215 help
Glenn L McGrath3b251852004-01-03 12:07:32 +0000216 Remove the busybox introduction when starting a shell.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000217
218config CONFIG_FEATURE_SH_STANDALONE_SHELL
219 bool "Standalone shell"
220 default n
221 depends on CONFIG_MSH || CONFIG_LASH || CONFIG_HUSH || CONFIG_ASH
222 help
Eric Andersen075dd812004-04-07 09:34:27 +0000223 This option causes the selected busybox shell to use busybox applets
224 in preference to executables in the PATH whenever possible. For
225 example, entering the command 'ifconfig' into the shell would cause
226 busybox to use the ifconfig busybox applet. Specifying the fully
227 qualified executable name, such as '/sbin/ifconfig' will still
228 execute the /sbin/ifconfig executable on the filesystem. This option
Rob Landley06ec8cf2006-03-03 19:02:50 +0000229 is generally used when creating a statically linked version of busybox
Eric Andersen075dd812004-04-07 09:34:27 +0000230 for use as a rescue shell, in the event that you screw up your system.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000231
Eric Andersen6f8542b2004-09-24 01:25:39 +0000232 Note that when using this option, the shell will attempt to directly
233 run '/bin/busybox'. If you do not have the busybox binary sitting in
234 that exact location with that exact name, this option will not work at
235 all.
236
Glenn L McGrath3b251852004-01-03 12:07:32 +0000237config CONFIG_FEATURE_COMMAND_EDITING
238 bool "command line editing"
239 default n
240 depends on CONFIG_MSH || CONFIG_LASH || CONFIG_HUSH || CONFIG_ASH
241 help
242 Enable command editing in shell.
243
Paul Fox3f11b1b2005-08-04 19:04:46 +0000244config CONFIG_FEATURE_COMMAND_EDITING_VI
245 bool "vi-style line editing commands"
246 default n
247 depends on CONFIG_FEATURE_COMMAND_EDITING
248 help
249 Enable vi-style line editing in the shell. This mode can be
250 turned on and off with "set -o vi" and "set +o vi".
251
Glenn L McGrath3b251852004-01-03 12:07:32 +0000252config CONFIG_FEATURE_COMMAND_HISTORY
253 int "history size"
254 default 15
255 depends on CONFIG_FEATURE_COMMAND_EDITING
256 help
257 Specify command history size in shell.
258
259config CONFIG_FEATURE_COMMAND_SAVEHISTORY
260 bool "history saving"
261 default n
262 depends on CONFIG_ASH && CONFIG_FEATURE_COMMAND_EDITING
263 help
264 Enable history saving in ash shell.
265
266config CONFIG_FEATURE_COMMAND_TAB_COMPLETION
267 bool "tab completion"
268 default n
269 depends on CONFIG_FEATURE_COMMAND_EDITING
270 help
271 Enable tab completion in shell.
272
273config CONFIG_FEATURE_COMMAND_USERNAME_COMPLETION
274 bool "username completion"
275 default n
276 depends on CONFIG_FEATURE_COMMAND_TAB_COMPLETION
277 help
278 Enable username completion in shell.
279
Eric Andersenc9f20d92002-12-05 08:41:41 +0000280config CONFIG_FEATURE_SH_FANCY_PROMPT
281 bool "Fancy shell prompts"
282 default n
Glenn L McGrath3b251852004-01-03 12:07:32 +0000283 depends on CONFIG_FEATURE_COMMAND_EDITING
Eric Andersenc9f20d92002-12-05 08:41:41 +0000284 help
Eric Andersen9c3c38d2003-07-22 09:59:34 +0000285 Setting this option allows for prompts to use things like \w and
286 \$ and also using escape codes.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000287
Eric Andersenc9f20d92002-12-05 08:41:41 +0000288endmenu