Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 1 | # |
| 2 | # For a description of the syntax of this configuration file, |
| 3 | # see scripts/kbuild/config-language.txt. |
| 4 | # |
| 5 | |
Glenn L McGrath | fdbbb04 | 2002-12-09 11:10:40 +0000 | [diff] [blame] | 6 | menu "Another Bourne-like Shell" |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 7 | |
| 8 | choice |
| 9 | prompt "Choose your default shell" |
Eric Andersen | 72d8e44 | 2003-08-05 02:18:25 +0000 | [diff] [blame] | 10 | default CONFIG_FEATURE_SH_IS_NONE |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 11 | help |
Eric Andersen | e564211 | 2003-07-14 19:37:08 +0000 | [diff] [blame] | 12 | Choose a shell. The ash shell is the most bash compatible |
Eric Andersen | 88c916b | 2003-10-22 09:58:56 +0000 | [diff] [blame] | 13 | and full featured one. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 14 | |
| 15 | config CONFIG_FEATURE_SH_IS_ASH |
Eric Andersen | b287e2e | 2003-08-08 23:40:12 +0000 | [diff] [blame] | 16 | select CONFIG_ASH |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 17 | bool "ash" |
| 18 | |
| 19 | config CONFIG_FEATURE_SH_IS_HUSH |
Eric Andersen | b287e2e | 2003-08-08 23:40:12 +0000 | [diff] [blame] | 20 | select CONFIG_HUSH |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 21 | bool "hush" |
| 22 | |
| 23 | config CONFIG_FEATURE_SH_IS_LASH |
Eric Andersen | b287e2e | 2003-08-08 23:40:12 +0000 | [diff] [blame] | 24 | select CONFIG_LASH |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 25 | bool "lash" |
| 26 | |
| 27 | config CONFIG_FEATURE_SH_IS_MSH |
Eric Andersen | b287e2e | 2003-08-08 23:40:12 +0000 | [diff] [blame] | 28 | select CONFIG_MSH |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 29 | bool "msh" |
| 30 | |
Eric Andersen | a6b9051 | 2002-12-06 21:49:59 +0000 | [diff] [blame] | 31 | config CONFIG_FEATURE_SH_IS_NONE |
| 32 | bool "none" |
| 33 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 34 | endchoice |
| 35 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 36 | config CONFIG_ASH |
| 37 | bool "ash" |
| 38 | default y |
| 39 | help |
Eric Andersen | b287e2e | 2003-08-08 23:40:12 +0000 | [diff] [blame] | 40 | Tha 'ash' shell adds about 60k in the default configuration and is |
| 41 | the most complete and most pedantically correct shell included with |
Eric Andersen | 88c916b | 2003-10-22 09:58:56 +0000 | [diff] [blame] | 42 | busybox. This shell is actually a derivative of the Debian 'dash' |
| 43 | shell (by Herbert Xu), which was created by porting the 'ash' shell |
Eric Andersen | c7bda1c | 2004-03-15 08:29:22 +0000 | [diff] [blame] | 44 | (written by Kenneth Almquist) from NetBSD. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 45 | |
| 46 | comment "Ash Shell Options" |
| 47 | depends on CONFIG_ASH |
| 48 | |
| 49 | config CONFIG_ASH_JOB_CONTROL |
| 50 | bool " Enable Job control" |
| 51 | default y |
| 52 | depends on CONFIG_ASH |
| 53 | help |
Eric Andersen | e564211 | 2003-07-14 19:37:08 +0000 | [diff] [blame] | 54 | Enable job control in the ash shell. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 55 | |
Paul Fox | 02eb934 | 2005-09-07 16:56:02 +0000 | [diff] [blame] | 56 | config CONFIG_ASH_READ_NCHARS |
| 57 | bool " Enable 'read -n N' and 'read -s' support" |
Ned Ludd | 2123b7c | 2005-02-09 21:07:23 +0000 | [diff] [blame] | 58 | default n |
Paul Fox | 02eb934 | 2005-09-07 16:56:02 +0000 | [diff] [blame] | 59 | depends on CONFIG_ASH |
Ned Ludd | 2123b7c | 2005-02-09 21:07:23 +0000 | [diff] [blame] | 60 | help |
Paul Fox | 02eb934 | 2005-09-07 16:56:02 +0000 | [diff] [blame] | 61 | 'read -n N' will return a value after N characters have been read. |
| 62 | 'read -s' will read without echoing the user's input. |
Ned Ludd | 2123b7c | 2005-02-09 21:07:23 +0000 | [diff] [blame] | 63 | |
Paul Fox | 02eb934 | 2005-09-07 16:56:02 +0000 | [diff] [blame] | 64 | config CONFIG_ASH_READ_TIMEOUT |
| 65 | bool " Enable 'read -t S' support." |
| 66 | default n |
| 67 | depends on CONFIG_ASH |
| 68 | help |
| 69 | 'read -t S' will return a value after S seconds have passed. |
| 70 | This implementation will allow fractional seconds, expressed |
| 71 | as a decimal fraction, e.g. 'read -t 2.5 foo'. |
Ned Ludd | 2123b7c | 2005-02-09 21:07:23 +0000 | [diff] [blame] | 72 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 73 | config CONFIG_ASH_ALIAS |
| 74 | bool " Enable alias support" |
| 75 | default y |
| 76 | depends on CONFIG_ASH |
| 77 | help |
Eric Andersen | e564211 | 2003-07-14 19:37:08 +0000 | [diff] [blame] | 78 | Enable alias support in the ash shell. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 79 | |
| 80 | config CONFIG_ASH_MATH_SUPPORT |
| 81 | bool " Enable Posix math support" |
| 82 | default y |
| 83 | depends on CONFIG_ASH |
| 84 | help |
Eric Andersen | e564211 | 2003-07-14 19:37:08 +0000 | [diff] [blame] | 85 | Enable math support in the ash shell. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 86 | |
Eric Andersen | ed9ecf7 | 2004-06-22 08:29:45 +0000 | [diff] [blame] | 87 | config CONFIG_ASH_MATH_SUPPORT_64 |
| 88 | bool " Extend Posix math support to 64 bit" |
| 89 | default n |
| 90 | depends on CONFIG_ASH_MATH_SUPPORT |
| 91 | help |
| 92 | Enable 64-bit math support in the ash shell. This will make |
| 93 | the shell slightly larger, but will allow computation with very |
| 94 | large numbers. |
| 95 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 96 | config CONFIG_ASH_GETOPTS |
Glenn L McGrath | 53090cd | 2004-09-24 09:09:44 +0000 | [diff] [blame] | 97 | bool " Enable getopts builtin to parse positional parameters" |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 98 | default n |
| 99 | depends on CONFIG_ASH |
| 100 | help |
Glenn L McGrath | 53090cd | 2004-09-24 09:09:44 +0000 | [diff] [blame] | 101 | Enable getopts builtin in the ash shell. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 102 | |
| 103 | config CONFIG_ASH_CMDCMD |
| 104 | bool " Enable cmdcmd to override shell builtins" |
| 105 | default n |
| 106 | depends on CONFIG_ASH |
| 107 | help |
Eric Andersen | 3857a18 | 2003-07-22 10:14:32 +0000 | [diff] [blame] | 108 | Enable support for the ash 'command' builtin, which allows |
| 109 | you to run the specified command with the specified arguments, |
| 110 | even when there is an ash builtin command with the same name. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 111 | |
Paul Fox | 0b62158 | 2005-08-09 19:38:05 +0000 | [diff] [blame] | 112 | config CONFIG_ASH_BUILTIN_ECHO |
| 113 | bool " Enable builtin version of 'echo'" |
| 114 | default n |
| 115 | depends on CONFIG_ASH |
| 116 | help |
| 117 | Enable support for echo, built in to ash. |
| 118 | |
| 119 | # this entry also appears in coreutils/Config.in, next to the echo applet |
| 120 | config CONFIG_FEATURE_FANCY_ECHO |
| 121 | bool " Enable echo options (-n and -e)" |
| 122 | default y |
| 123 | depends on CONFIG_ASH_BUILTIN_ECHO |
| 124 | help |
| 125 | This adds options (-n and -e) to echo. |
| 126 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 127 | config CONFIG_ASH_MAIL |
| 128 | bool " Check for new mail on interactive shells" |
| 129 | default y |
| 130 | depends on CONFIG_ASH |
| 131 | help |
Eric Andersen | e564211 | 2003-07-14 19:37:08 +0000 | [diff] [blame] | 132 | Enable "check for new mail" in the ash shell. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 133 | |
| 134 | config CONFIG_ASH_OPTIMIZE_FOR_SIZE |
| 135 | bool " Optimize for size instead of speed" |
| 136 | default y |
| 137 | depends on CONFIG_ASH |
| 138 | help |
Eric Andersen | e564211 | 2003-07-14 19:37:08 +0000 | [diff] [blame] | 139 | Compile ash for reduced size at price of speed. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 140 | |
Eric Andersen | 16767e2 | 2004-03-16 05:14:10 +0000 | [diff] [blame] | 141 | config CONFIG_ASH_RANDOM_SUPPORT |
| 142 | bool " Enable pseudorandom generator and variable $RANDOM" |
| 143 | default n |
| 144 | depends on CONFIG_ASH |
| 145 | help |
| 146 | Enable pseudorandom generator and dynamic variable "$RANDOM". |
| 147 | Each read of "$RANDOM" will generate a new pseudorandom value. |
| 148 | You can reset the generator by using a specified start value. |
| 149 | After "unset RANDOM" then generator will switch off and this |
| 150 | variable will no longer have special treatment. |
| 151 | |
"Vladimir N. Oleynik" | bef14d7 | 2005-09-05 13:25:11 +0000 | [diff] [blame] | 152 | config CONFIG_ASH_EXPAND_PRMT |
| 153 | bool " Support expand PS#" |
| 154 | default n |
| 155 | depends on CONFIG_ASH |
| 156 | help |
| 157 | "PS#" may be have commands. It option enable expand string |
| 158 | from prompt before each show. |
| 159 | |
| 160 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 161 | config CONFIG_HUSH |
| 162 | bool "hush" |
| 163 | default n |
| 164 | help |
Eric Andersen | 88c916b | 2003-10-22 09:58:56 +0000 | [diff] [blame] | 165 | hush is a very small shell (just 18k) and it has fairly complete |
| 166 | Bourne shell grammar. It even handles all the normal flow control |
| 167 | options such as if/then/elif/else/fi, for/in/do/done, while loops, |
| 168 | etc. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 169 | |
Eric Andersen | b287e2e | 2003-08-08 23:40:12 +0000 | [diff] [blame] | 170 | It does not handle case/esac, select, function, here documents ( << |
| 171 | word ), arithmetic expansion, aliases, brace expansion, tilde |
| 172 | expansion, &> and >& redirection of stdout+stderr, etc. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 173 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 174 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 175 | config CONFIG_LASH |
| 176 | bool "lash" |
| 177 | default n |
| 178 | help |
Eric Andersen | b287e2e | 2003-08-08 23:40:12 +0000 | [diff] [blame] | 179 | lash is the very smallest shell (adds just 10k) and it is quite |
| 180 | usable as a command prompt, but it is not suitable for any but the |
| 181 | most trivial scripting (such as an initrd that calls insmod a few |
Eric Andersen | 88c916b | 2003-10-22 09:58:56 +0000 | [diff] [blame] | 182 | times) since it does not understand any Bourne shell grammar. It |
Eric Andersen | b287e2e | 2003-08-08 23:40:12 +0000 | [diff] [blame] | 183 | does handle pipes, redirects, and job control though. Adding in |
| 184 | command editing makes it a very nice lightweight command prompt. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 185 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 186 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 187 | config CONFIG_MSH |
| 188 | bool "msh" |
| 189 | default n |
| 190 | help |
Eric Andersen | b287e2e | 2003-08-08 23:40:12 +0000 | [diff] [blame] | 191 | The minix shell (adds just 30k) is quite complete and handles things |
| 192 | like for/do/done, case/esac and all the things you expect a Bourne |
| 193 | shell to do. It is not always pedantically correct about Bourne |
Eric Andersen | 88c916b | 2003-10-22 09:58:56 +0000 | [diff] [blame] | 194 | shell grammar (try running the shell testscript "tests/sh.testcases" |
Eric Andersen | b287e2e | 2003-08-08 23:40:12 +0000 | [diff] [blame] | 195 | on it and compare vs bash) but for most things it works quite well. |
| 196 | It also uses only vfork, so it can be used on uClinux systems. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 197 | |
| 198 | comment "Bourne Shell Options" |
| 199 | depends on CONFIG_MSH || CONFIG_LASH || CONFIG_HUSH || CONFIG_ASH |
| 200 | |
Glenn L McGrath | 3b25185 | 2004-01-03 12:07:32 +0000 | [diff] [blame] | 201 | config CONFIG_FEATURE_SH_EXTRA_QUIET |
| 202 | bool "Hide message on interactive shell startup" |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 203 | default n |
| 204 | depends on CONFIG_MSH || CONFIG_LASH || CONFIG_HUSH || CONFIG_ASH |
| 205 | help |
Glenn L McGrath | 3b25185 | 2004-01-03 12:07:32 +0000 | [diff] [blame] | 206 | Remove the busybox introduction when starting a shell. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 207 | |
| 208 | config CONFIG_FEATURE_SH_STANDALONE_SHELL |
| 209 | bool "Standalone shell" |
| 210 | default n |
| 211 | depends on CONFIG_MSH || CONFIG_LASH || CONFIG_HUSH || CONFIG_ASH |
| 212 | help |
Eric Andersen | 075dd81 | 2004-04-07 09:34:27 +0000 | [diff] [blame] | 213 | This option causes the selected busybox shell to use busybox applets |
| 214 | in preference to executables in the PATH whenever possible. For |
| 215 | example, entering the command 'ifconfig' into the shell would cause |
| 216 | busybox to use the ifconfig busybox applet. Specifying the fully |
| 217 | qualified executable name, such as '/sbin/ifconfig' will still |
| 218 | execute the /sbin/ifconfig executable on the filesystem. This option |
| 219 | is generally used when creating a staticly linked version of busybox |
| 220 | for use as a rescue shell, in the event that you screw up your system. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 221 | |
Eric Andersen | 6f8542b | 2004-09-24 01:25:39 +0000 | [diff] [blame] | 222 | Note that when using this option, the shell will attempt to directly |
| 223 | run '/bin/busybox'. If you do not have the busybox binary sitting in |
| 224 | that exact location with that exact name, this option will not work at |
| 225 | all. |
| 226 | |
Glenn L McGrath | 3b25185 | 2004-01-03 12:07:32 +0000 | [diff] [blame] | 227 | config CONFIG_FEATURE_COMMAND_EDITING |
| 228 | bool "command line editing" |
| 229 | default n |
| 230 | depends on CONFIG_MSH || CONFIG_LASH || CONFIG_HUSH || CONFIG_ASH |
| 231 | help |
| 232 | Enable command editing in shell. |
| 233 | |
Paul Fox | 3f11b1b | 2005-08-04 19:04:46 +0000 | [diff] [blame] | 234 | config CONFIG_FEATURE_COMMAND_EDITING_VI |
| 235 | bool "vi-style line editing commands" |
| 236 | default n |
| 237 | depends on CONFIG_FEATURE_COMMAND_EDITING |
| 238 | help |
| 239 | Enable vi-style line editing in the shell. This mode can be |
| 240 | turned on and off with "set -o vi" and "set +o vi". |
| 241 | |
Glenn L McGrath | 3b25185 | 2004-01-03 12:07:32 +0000 | [diff] [blame] | 242 | config CONFIG_FEATURE_COMMAND_HISTORY |
| 243 | int "history size" |
| 244 | default 15 |
| 245 | depends on CONFIG_FEATURE_COMMAND_EDITING |
| 246 | help |
| 247 | Specify command history size in shell. |
| 248 | |
| 249 | config CONFIG_FEATURE_COMMAND_SAVEHISTORY |
| 250 | bool "history saving" |
| 251 | default n |
| 252 | depends on CONFIG_ASH && CONFIG_FEATURE_COMMAND_EDITING |
| 253 | help |
| 254 | Enable history saving in ash shell. |
| 255 | |
| 256 | config CONFIG_FEATURE_COMMAND_TAB_COMPLETION |
| 257 | bool "tab completion" |
| 258 | default n |
| 259 | depends on CONFIG_FEATURE_COMMAND_EDITING |
| 260 | help |
| 261 | Enable tab completion in shell. |
| 262 | |
| 263 | config CONFIG_FEATURE_COMMAND_USERNAME_COMPLETION |
| 264 | bool "username completion" |
| 265 | default n |
| 266 | depends on CONFIG_FEATURE_COMMAND_TAB_COMPLETION |
| 267 | help |
| 268 | Enable username completion in shell. |
| 269 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 270 | config CONFIG_FEATURE_SH_FANCY_PROMPT |
| 271 | bool "Fancy shell prompts" |
| 272 | default n |
Glenn L McGrath | 3b25185 | 2004-01-03 12:07:32 +0000 | [diff] [blame] | 273 | depends on CONFIG_FEATURE_COMMAND_EDITING |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 274 | help |
Eric Andersen | 9c3c38d | 2003-07-22 09:59:34 +0000 | [diff] [blame] | 275 | Setting this option allows for prompts to use things like \w and |
| 276 | \$ and also using escape codes. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 277 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 278 | endmenu |