blob: 8f2f98e681f74e686c99a9b2d5d8188885663232 [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
Rob Landley2ec922e2006-04-13 23:22:16 +000051 bool "Enable Job control"
Eric Andersenc9f20d92002-12-05 08:41:41 +000052 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
Rob Landley2ec922e2006-04-13 23:22:16 +000058 bool "Enable 'read -n N' and 'read -s' support"
Mike Frysinger9ac178a2005-09-24 05:49:36 +000059 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
Rob Landley2ec922e2006-04-13 23:22:16 +000066 bool "Enable 'read -t S' support."
Mike Frysinger9ac178a2005-09-24 05:49:36 +000067 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
Rob Landley2ec922e2006-04-13 23:22:16 +000075 bool "Enable alias support"
Eric Andersenc9f20d92002-12-05 08:41:41 +000076 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
Rob Landley2ec922e2006-04-13 23:22:16 +000082 bool "Enable Posix math support"
Eric Andersenc9f20d92002-12-05 08:41:41 +000083 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
Rob Landley2ec922e2006-04-13 23:22:16 +000089 bool "Extend Posix math support to 64 bit"
Eric Andersened9ecf72004-06-22 08:29:45 +000090 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
Paul Fox6ab03782006-06-08 21:37:26 +000098 bool "Builtin getopt 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
Paul Fox6ab03782006-06-08 21:37:26 +0000104config CONFIG_ASH_BUILTIN_ECHO
105 bool "Builtin version of 'echo'"
106 default y
107 select CONFIG_ECHO
108 depends on CONFIG_ASH
109 help
110 Enable support for echo, built in to ash.
111
112config CONFIG_ASH_BUILTIN_TEST
113 bool "Builtin version of 'test'"
114 default y
115 select CONFIG_TEST
116 depends on CONFIG_ASH
117 help
118 Enable support for test, built in to ash.
119
Eric Andersenc9f20d92002-12-05 08:41:41 +0000120config CONFIG_ASH_CMDCMD
Rob Landley2ec922e2006-04-13 23:22:16 +0000121 bool "Enable cmdcmd to override shell builtins"
Eric Andersenc9f20d92002-12-05 08:41:41 +0000122 default n
123 depends on CONFIG_ASH
124 help
Eric Andersen3857a182003-07-22 10:14:32 +0000125 Enable support for the ash 'command' builtin, which allows
126 you to run the specified command with the specified arguments,
127 even when there is an ash builtin command with the same name.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000128
129config CONFIG_ASH_MAIL
Rob Landley2ec922e2006-04-13 23:22:16 +0000130 bool "Check for new mail on interactive shells"
Eric Andersenc9f20d92002-12-05 08:41:41 +0000131 default y
132 depends on CONFIG_ASH
133 help
Eric Andersene5642112003-07-14 19:37:08 +0000134 Enable "check for new mail" in the ash shell.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000135
136config CONFIG_ASH_OPTIMIZE_FOR_SIZE
Rob Landley2ec922e2006-04-13 23:22:16 +0000137 bool "Optimize for size instead of speed"
Eric Andersenc9f20d92002-12-05 08:41:41 +0000138 default y
139 depends on CONFIG_ASH
140 help
Rob Landley32251b42006-02-08 18:34:21 +0000141 Compile ash for reduced size at the price of speed.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000142
Eric Andersen16767e22004-03-16 05:14:10 +0000143config CONFIG_ASH_RANDOM_SUPPORT
Rob Landley2ec922e2006-04-13 23:22:16 +0000144 bool "Enable pseudorandom generator and variable $RANDOM"
Eric Andersen16767e22004-03-16 05:14:10 +0000145 default n
146 depends on CONFIG_ASH
147 help
148 Enable pseudorandom generator and dynamic variable "$RANDOM".
149 Each read of "$RANDOM" will generate a new pseudorandom value.
150 You can reset the generator by using a specified start value.
151 After "unset RANDOM" then generator will switch off and this
152 variable will no longer have special treatment.
153
"Vladimir N. Oleynik"bef14d72005-09-05 13:25:11 +0000154config CONFIG_ASH_EXPAND_PRMT
Rob Landley2ec922e2006-04-13 23:22:16 +0000155 bool "Expand prompt string"
"Vladimir N. Oleynik"bef14d72005-09-05 13:25:11 +0000156 default n
157 depends on CONFIG_ASH
158 help
Rob Landley32251b42006-02-08 18:34:21 +0000159 "PS#" may be contain volatile content, such as backquote commands.
160 This option recreates the prompt string from the environment
161 variable each time it is displayed.
"Vladimir N. Oleynik"bef14d72005-09-05 13:25:11 +0000162
Eric Andersenc9f20d92002-12-05 08:41:41 +0000163config CONFIG_HUSH
164 bool "hush"
165 default n
Bernhard Reutner-Fischer96002bb2006-01-19 14:42:23 +0000166 select CONFIG_TRUE
167 select CONFIG_FALSE
168 select CONFIG_TEST
Eric Andersenc9f20d92002-12-05 08:41:41 +0000169 help
Eric Andersen88c916b2003-10-22 09:58:56 +0000170 hush is a very small shell (just 18k) and it has fairly complete
171 Bourne shell grammar. It even handles all the normal flow control
172 options such as if/then/elif/else/fi, for/in/do/done, while loops,
173 etc.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000174
Eric Andersenb287e2e2003-08-08 23:40:12 +0000175 It does not handle case/esac, select, function, here documents ( <<
176 word ), arithmetic expansion, aliases, brace expansion, tilde
177 expansion, &> and >& redirection of stdout+stderr, etc.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000178
Eric Andersenc9f20d92002-12-05 08:41:41 +0000179
Eric Andersenc9f20d92002-12-05 08:41:41 +0000180config CONFIG_LASH
181 bool "lash"
182 default n
Bernhard Reutner-Fischer96002bb2006-01-19 14:42:23 +0000183 select CONFIG_TRUE
184 select CONFIG_FALSE
185 select CONFIG_TEST
Eric Andersenc9f20d92002-12-05 08:41:41 +0000186 help
Eric Andersenb287e2e2003-08-08 23:40:12 +0000187 lash is the very smallest shell (adds just 10k) and it is quite
188 usable as a command prompt, but it is not suitable for any but the
189 most trivial scripting (such as an initrd that calls insmod a few
Eric Andersen88c916b2003-10-22 09:58:56 +0000190 times) since it does not understand any Bourne shell grammar. It
Eric Andersenb287e2e2003-08-08 23:40:12 +0000191 does handle pipes, redirects, and job control though. Adding in
192 command editing makes it a very nice lightweight command prompt.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000193
Eric Andersenc9f20d92002-12-05 08:41:41 +0000194
Eric Andersenc9f20d92002-12-05 08:41:41 +0000195config CONFIG_MSH
196 bool "msh"
197 default n
Bernhard Reutner-Fischer96002bb2006-01-19 14:42:23 +0000198 select CONFIG_TRUE
199 select CONFIG_FALSE
200 select CONFIG_TEST
Eric Andersenc9f20d92002-12-05 08:41:41 +0000201 help
Eric Andersenb287e2e2003-08-08 23:40:12 +0000202 The minix shell (adds just 30k) is quite complete and handles things
203 like for/do/done, case/esac and all the things you expect a Bourne
204 shell to do. It is not always pedantically correct about Bourne
Eric Andersen88c916b2003-10-22 09:58:56 +0000205 shell grammar (try running the shell testscript "tests/sh.testcases"
Eric Andersenb287e2e2003-08-08 23:40:12 +0000206 on it and compare vs bash) but for most things it works quite well.
207 It also uses only vfork, so it can be used on uClinux systems.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000208
209comment "Bourne Shell Options"
210 depends on CONFIG_MSH || CONFIG_LASH || CONFIG_HUSH || CONFIG_ASH
211
Glenn L McGrath3b251852004-01-03 12:07:32 +0000212config CONFIG_FEATURE_SH_EXTRA_QUIET
213 bool "Hide message on interactive shell startup"
Eric Andersenc9f20d92002-12-05 08:41:41 +0000214 default n
215 depends on CONFIG_MSH || CONFIG_LASH || CONFIG_HUSH || CONFIG_ASH
216 help
Glenn L McGrath3b251852004-01-03 12:07:32 +0000217 Remove the busybox introduction when starting a shell.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000218
219config CONFIG_FEATURE_SH_STANDALONE_SHELL
220 bool "Standalone shell"
221 default n
222 depends on CONFIG_MSH || CONFIG_LASH || CONFIG_HUSH || CONFIG_ASH
223 help
Eric Andersen075dd812004-04-07 09:34:27 +0000224 This option causes the selected busybox shell to use busybox applets
225 in preference to executables in the PATH whenever possible. For
226 example, entering the command 'ifconfig' into the shell would cause
227 busybox to use the ifconfig busybox applet. Specifying the fully
228 qualified executable name, such as '/sbin/ifconfig' will still
229 execute the /sbin/ifconfig executable on the filesystem. This option
Rob Landley06ec8cf2006-03-03 19:02:50 +0000230 is generally used when creating a statically linked version of busybox
Eric Andersen075dd812004-04-07 09:34:27 +0000231 for use as a rescue shell, in the event that you screw up your system.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000232
Paul Fox6ab03782006-06-08 21:37:26 +0000233 Note that this will *also* cause applets to take precedence
234 over shell builtins of the same name. So turning this on will
235 eliminate any performance gained by turning on the builtin "echo"
236 and "test" commands in ash.
237
Eric Andersen6f8542b2004-09-24 01:25:39 +0000238 Note that when using this option, the shell will attempt to directly
239 run '/bin/busybox'. If you do not have the busybox binary sitting in
240 that exact location with that exact name, this option will not work at
241 all.
242
Glenn L McGrath3b251852004-01-03 12:07:32 +0000243config CONFIG_FEATURE_COMMAND_EDITING
244 bool "command line editing"
245 default n
246 depends on CONFIG_MSH || CONFIG_LASH || CONFIG_HUSH || CONFIG_ASH
247 help
248 Enable command editing in shell.
249
Paul Fox3f11b1b2005-08-04 19:04:46 +0000250config CONFIG_FEATURE_COMMAND_EDITING_VI
251 bool "vi-style line editing commands"
252 default n
253 depends on CONFIG_FEATURE_COMMAND_EDITING
254 help
255 Enable vi-style line editing in the shell. This mode can be
256 turned on and off with "set -o vi" and "set +o vi".
257
Glenn L McGrath3b251852004-01-03 12:07:32 +0000258config CONFIG_FEATURE_COMMAND_HISTORY
259 int "history size"
260 default 15
261 depends on CONFIG_FEATURE_COMMAND_EDITING
262 help
263 Specify command history size in shell.
264
265config CONFIG_FEATURE_COMMAND_SAVEHISTORY
266 bool "history saving"
267 default n
268 depends on CONFIG_ASH && CONFIG_FEATURE_COMMAND_EDITING
269 help
270 Enable history saving in ash shell.
271
272config CONFIG_FEATURE_COMMAND_TAB_COMPLETION
273 bool "tab completion"
274 default n
275 depends on CONFIG_FEATURE_COMMAND_EDITING
276 help
277 Enable tab completion in shell.
278
279config CONFIG_FEATURE_COMMAND_USERNAME_COMPLETION
280 bool "username completion"
281 default n
282 depends on CONFIG_FEATURE_COMMAND_TAB_COMPLETION
283 help
284 Enable username completion in shell.
285
Eric Andersenc9f20d92002-12-05 08:41:41 +0000286config CONFIG_FEATURE_SH_FANCY_PROMPT
287 bool "Fancy shell prompts"
288 default n
Glenn L McGrath3b251852004-01-03 12:07:32 +0000289 depends on CONFIG_FEATURE_COMMAND_EDITING
Eric Andersenc9f20d92002-12-05 08:41:41 +0000290 help
Eric Andersen9c3c38d2003-07-22 09:59:34 +0000291 Setting this option allows for prompts to use things like \w and
292 \$ and also using escape codes.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000293
Eric Andersenc9f20d92002-12-05 08:41:41 +0000294endmenu