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 | |
| 56 | config CONFIG_ASH_ALIAS |
| 57 | bool " Enable alias support" |
| 58 | default y |
| 59 | depends on CONFIG_ASH |
| 60 | help |
Eric Andersen | e564211 | 2003-07-14 19:37:08 +0000 | [diff] [blame] | 61 | Enable alias support in the ash shell. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 62 | |
| 63 | config CONFIG_ASH_MATH_SUPPORT |
| 64 | bool " Enable Posix math support" |
| 65 | default y |
| 66 | depends on CONFIG_ASH |
| 67 | help |
Eric Andersen | e564211 | 2003-07-14 19:37:08 +0000 | [diff] [blame] | 68 | Enable math support in the ash shell. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 69 | |
| 70 | config CONFIG_ASH_GETOPTS |
| 71 | bool " Enable getopt builtin to parse positional parameters" |
| 72 | default n |
| 73 | depends on CONFIG_ASH |
| 74 | help |
Eric Andersen | e564211 | 2003-07-14 19:37:08 +0000 | [diff] [blame] | 75 | Enable builtin getopt in the ash shell. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 76 | |
| 77 | config CONFIG_ASH_CMDCMD |
| 78 | bool " Enable cmdcmd to override shell builtins" |
| 79 | default n |
| 80 | depends on CONFIG_ASH |
| 81 | help |
Eric Andersen | 3857a18 | 2003-07-22 10:14:32 +0000 | [diff] [blame] | 82 | Enable support for the ash 'command' builtin, which allows |
| 83 | you to run the specified command with the specified arguments, |
| 84 | even when there is an ash builtin command with the same name. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 85 | |
| 86 | config CONFIG_ASH_MAIL |
| 87 | bool " Check for new mail on interactive shells" |
| 88 | default y |
| 89 | depends on CONFIG_ASH |
| 90 | help |
Eric Andersen | e564211 | 2003-07-14 19:37:08 +0000 | [diff] [blame] | 91 | Enable "check for new mail" in the ash shell. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 92 | |
| 93 | config CONFIG_ASH_OPTIMIZE_FOR_SIZE |
| 94 | bool " Optimize for size instead of speed" |
| 95 | default y |
| 96 | depends on CONFIG_ASH |
| 97 | help |
Eric Andersen | e564211 | 2003-07-14 19:37:08 +0000 | [diff] [blame] | 98 | Compile ash for reduced size at price of speed. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 99 | |
Eric Andersen | 16767e2 | 2004-03-16 05:14:10 +0000 | [diff] [blame^] | 100 | config CONFIG_ASH_RANDOM_SUPPORT |
| 101 | bool " Enable pseudorandom generator and variable $RANDOM" |
| 102 | default n |
| 103 | depends on CONFIG_ASH |
| 104 | help |
| 105 | Enable pseudorandom generator and dynamic variable "$RANDOM". |
| 106 | Each read of "$RANDOM" will generate a new pseudorandom value. |
| 107 | You can reset the generator by using a specified start value. |
| 108 | After "unset RANDOM" then generator will switch off and this |
| 109 | variable will no longer have special treatment. |
| 110 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 111 | config CONFIG_HUSH |
| 112 | bool "hush" |
| 113 | default n |
| 114 | help |
Eric Andersen | 88c916b | 2003-10-22 09:58:56 +0000 | [diff] [blame] | 115 | hush is a very small shell (just 18k) and it has fairly complete |
| 116 | Bourne shell grammar. It even handles all the normal flow control |
| 117 | options such as if/then/elif/else/fi, for/in/do/done, while loops, |
| 118 | etc. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 119 | |
Eric Andersen | b287e2e | 2003-08-08 23:40:12 +0000 | [diff] [blame] | 120 | It does not handle case/esac, select, function, here documents ( << |
| 121 | word ), arithmetic expansion, aliases, brace expansion, tilde |
| 122 | expansion, &> and >& redirection of stdout+stderr, etc. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 123 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 124 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 125 | config CONFIG_LASH |
| 126 | bool "lash" |
| 127 | default n |
| 128 | help |
Eric Andersen | b287e2e | 2003-08-08 23:40:12 +0000 | [diff] [blame] | 129 | lash is the very smallest shell (adds just 10k) and it is quite |
| 130 | usable as a command prompt, but it is not suitable for any but the |
| 131 | most trivial scripting (such as an initrd that calls insmod a few |
Eric Andersen | 88c916b | 2003-10-22 09:58:56 +0000 | [diff] [blame] | 132 | times) since it does not understand any Bourne shell grammar. It |
Eric Andersen | b287e2e | 2003-08-08 23:40:12 +0000 | [diff] [blame] | 133 | does handle pipes, redirects, and job control though. Adding in |
| 134 | command editing makes it a very nice lightweight command prompt. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 135 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 136 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 137 | config CONFIG_MSH |
| 138 | bool "msh" |
| 139 | default n |
| 140 | help |
Eric Andersen | b287e2e | 2003-08-08 23:40:12 +0000 | [diff] [blame] | 141 | The minix shell (adds just 30k) is quite complete and handles things |
| 142 | like for/do/done, case/esac and all the things you expect a Bourne |
| 143 | shell to do. It is not always pedantically correct about Bourne |
Eric Andersen | 88c916b | 2003-10-22 09:58:56 +0000 | [diff] [blame] | 144 | shell grammar (try running the shell testscript "tests/sh.testcases" |
Eric Andersen | b287e2e | 2003-08-08 23:40:12 +0000 | [diff] [blame] | 145 | on it and compare vs bash) but for most things it works quite well. |
| 146 | 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] | 147 | |
| 148 | comment "Bourne Shell Options" |
| 149 | depends on CONFIG_MSH || CONFIG_LASH || CONFIG_HUSH || CONFIG_ASH |
| 150 | |
Glenn L McGrath | 3b25185 | 2004-01-03 12:07:32 +0000 | [diff] [blame] | 151 | config CONFIG_FEATURE_SH_EXTRA_QUIET |
| 152 | bool "Hide message on interactive shell startup" |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 153 | default n |
| 154 | depends on CONFIG_MSH || CONFIG_LASH || CONFIG_HUSH || CONFIG_ASH |
| 155 | help |
Glenn L McGrath | 3b25185 | 2004-01-03 12:07:32 +0000 | [diff] [blame] | 156 | Remove the busybox introduction when starting a shell. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 157 | |
| 158 | config CONFIG_FEATURE_SH_STANDALONE_SHELL |
| 159 | bool "Standalone shell" |
| 160 | default n |
| 161 | depends on CONFIG_MSH || CONFIG_LASH || CONFIG_HUSH || CONFIG_ASH |
| 162 | help |
Eric Andersen | e564211 | 2003-07-14 19:37:08 +0000 | [diff] [blame] | 163 | Have all the busybox commands built into the shell, creating |
| 164 | a standalone shell. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 165 | |
| 166 | config CONFIG_FEATURE_SH_APPLETS_ALWAYS_WIN |
| 167 | bool "Standalone shell -- applets always win" |
| 168 | default n |
Eric Andersen | f57a614 | 2003-09-12 04:49:21 +0000 | [diff] [blame] | 169 | depends on CONFIG_FEATURE_SH_STANDALONE_SHELL |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 170 | help |
Eric Andersen | e564211 | 2003-07-14 19:37:08 +0000 | [diff] [blame] | 171 | Use a command builtin to the shell over one with the same name, |
| 172 | that may be on the system. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 173 | |
Glenn L McGrath | 3b25185 | 2004-01-03 12:07:32 +0000 | [diff] [blame] | 174 | config CONFIG_FEATURE_COMMAND_EDITING |
| 175 | bool "command line editing" |
| 176 | default n |
| 177 | depends on CONFIG_MSH || CONFIG_LASH || CONFIG_HUSH || CONFIG_ASH |
| 178 | help |
| 179 | Enable command editing in shell. |
| 180 | |
| 181 | config CONFIG_FEATURE_COMMAND_HISTORY |
| 182 | int "history size" |
| 183 | default 15 |
| 184 | depends on CONFIG_FEATURE_COMMAND_EDITING |
| 185 | help |
| 186 | Specify command history size in shell. |
| 187 | |
| 188 | config CONFIG_FEATURE_COMMAND_SAVEHISTORY |
| 189 | bool "history saving" |
| 190 | default n |
| 191 | depends on CONFIG_ASH && CONFIG_FEATURE_COMMAND_EDITING |
| 192 | help |
| 193 | Enable history saving in ash shell. |
| 194 | |
| 195 | config CONFIG_FEATURE_COMMAND_TAB_COMPLETION |
| 196 | bool "tab completion" |
| 197 | default n |
| 198 | depends on CONFIG_FEATURE_COMMAND_EDITING |
| 199 | help |
| 200 | Enable tab completion in shell. |
| 201 | |
| 202 | config CONFIG_FEATURE_COMMAND_USERNAME_COMPLETION |
| 203 | bool "username completion" |
| 204 | default n |
| 205 | depends on CONFIG_FEATURE_COMMAND_TAB_COMPLETION |
| 206 | help |
| 207 | Enable username completion in shell. |
| 208 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 209 | config CONFIG_FEATURE_SH_FANCY_PROMPT |
| 210 | bool "Fancy shell prompts" |
| 211 | default n |
Glenn L McGrath | 3b25185 | 2004-01-03 12:07:32 +0000 | [diff] [blame] | 212 | depends on CONFIG_FEATURE_COMMAND_EDITING |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 213 | help |
Eric Andersen | 9c3c38d | 2003-07-22 09:59:34 +0000 | [diff] [blame] | 214 | Setting this option allows for prompts to use things like \w and |
| 215 | \$ and also using escape codes. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 216 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 217 | endmenu |