Config.in 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  1. #
  2. # For a description of the syntax of this configuration file,
  3. # see scripts/kbuild/config-language.txt.
  4. #
  5. menu "Shells"
  6. choice
  7. prompt "Choose your default shell"
  8. default FEATURE_SH_IS_NONE
  9. help
  10. Choose a shell. The ash shell is the most bash compatible
  11. and full featured one.
  12. config FEATURE_SH_IS_ASH
  13. select ASH
  14. bool "ash"
  15. config FEATURE_SH_IS_HUSH
  16. select HUSH
  17. bool "hush"
  18. config FEATURE_SH_IS_LASH
  19. select LASH
  20. bool "lash"
  21. config FEATURE_SH_IS_MSH
  22. select MSH
  23. bool "msh"
  24. config FEATURE_SH_IS_NONE
  25. bool "none"
  26. endchoice
  27. config ASH
  28. bool "ash"
  29. default n
  30. select TEST
  31. help
  32. Tha 'ash' shell adds about 60k in the default configuration and is
  33. the most complete and most pedantically correct shell included with
  34. busybox. This shell is actually a derivative of the Debian 'dash'
  35. shell (by Herbert Xu), which was created by porting the 'ash' shell
  36. (written by Kenneth Almquist) from NetBSD.
  37. comment "Ash Shell Options"
  38. depends on ASH
  39. config ASH_JOB_CONTROL
  40. bool "Job control"
  41. default y
  42. depends on ASH
  43. help
  44. Enable job control in the ash shell.
  45. config ASH_READ_NCHARS
  46. bool "'read -n N' and 'read -s' support"
  47. default n
  48. depends on ASH
  49. help
  50. 'read -n N' will return a value after N characters have been read.
  51. 'read -s' will read without echoing the user's input.
  52. config ASH_READ_TIMEOUT
  53. bool "'read -t S' support."
  54. default n
  55. depends on ASH
  56. help
  57. 'read -t S' will return a value after S seconds have passed.
  58. This implementation will allow fractional seconds, expressed
  59. as a decimal fraction, e.g. 'read -t 2.5 foo'.
  60. config ASH_ALIAS
  61. bool "alias support"
  62. default y
  63. depends on ASH
  64. help
  65. Enable alias support in the ash shell.
  66. config ASH_MATH_SUPPORT
  67. bool "Posix math support"
  68. default y
  69. depends on ASH
  70. help
  71. Enable math support in the ash shell.
  72. config ASH_MATH_SUPPORT_64
  73. bool "Extend Posix math support to 64 bit"
  74. default n
  75. depends on ASH_MATH_SUPPORT
  76. help
  77. Enable 64-bit math support in the ash shell. This will make
  78. the shell slightly larger, but will allow computation with very
  79. large numbers.
  80. config ASH_GETOPTS
  81. bool "Builtin getopt to parse positional parameters"
  82. default n
  83. depends on ASH
  84. help
  85. Enable getopts builtin in the ash shell.
  86. config ASH_BUILTIN_ECHO
  87. bool "Builtin version of 'echo'"
  88. default y
  89. select ECHO
  90. depends on ASH
  91. help
  92. Enable support for echo, built in to ash.
  93. config ASH_BUILTIN_TEST
  94. bool "Builtin version of 'test'"
  95. default y
  96. select TEST
  97. depends on ASH
  98. help
  99. Enable support for test, built in to ash.
  100. config ASH_CMDCMD
  101. bool "'command' command to override shell builtins"
  102. default n
  103. depends on ASH
  104. help
  105. Enable support for the ash 'command' builtin, which allows
  106. you to run the specified command with the specified arguments,
  107. even when there is an ash builtin command with the same name.
  108. config ASH_MAIL
  109. bool "Check for new mail on interactive shells"
  110. default y
  111. depends on ASH
  112. help
  113. Enable "check for new mail" in the ash shell.
  114. config ASH_OPTIMIZE_FOR_SIZE
  115. bool "Optimize for size instead of speed"
  116. default y
  117. depends on ASH
  118. help
  119. Compile ash for reduced size at the price of speed.
  120. config ASH_RANDOM_SUPPORT
  121. bool "Pseudorandom generator and variable $RANDOM"
  122. default n
  123. depends on ASH
  124. help
  125. Enable pseudorandom generator and dynamic variable "$RANDOM".
  126. Each read of "$RANDOM" will generate a new pseudorandom value.
  127. You can reset the generator by using a specified start value.
  128. After "unset RANDOM" then generator will switch off and this
  129. variable will no longer have special treatment.
  130. config ASH_EXPAND_PRMT
  131. bool "Expand prompt string"
  132. default n
  133. depends on ASH
  134. help
  135. "PS#" may be contain volatile content, such as backquote commands.
  136. This option recreates the prompt string from the environment
  137. variable each time it is displayed.
  138. config HUSH
  139. bool "hush"
  140. default n
  141. select TRUE
  142. select FALSE
  143. select TEST
  144. help
  145. hush is a very small shell (just 18k) and it has fairly complete
  146. Bourne shell grammar. It even handles all the normal flow control
  147. options such as if/then/elif/else/fi, for/in/do/done, while loops,
  148. etc.
  149. It does not handle case/esac, select, function, here documents ( <<
  150. word ), arithmetic expansion, aliases, brace expansion, tilde
  151. expansion, &> and >& redirection of stdout+stderr, etc.
  152. config LASH
  153. bool "lash"
  154. default n
  155. select TRUE
  156. select FALSE
  157. select TEST
  158. help
  159. lash is the very smallest shell (adds just 10k) and it is quite
  160. usable as a command prompt, but it is not suitable for any but the
  161. most trivial scripting (such as an initrd that calls insmod a few
  162. times) since it does not understand any Bourne shell grammar. It
  163. does handle pipes, redirects, and job control though. Adding in
  164. command editing makes it a very nice lightweight command prompt.
  165. config MSH
  166. bool "msh"
  167. default n
  168. select TRUE
  169. select FALSE
  170. select TEST
  171. help
  172. The minix shell (adds just 30k) is quite complete and handles things
  173. like for/do/done, case/esac and all the things you expect a Bourne
  174. shell to do. It is not always pedantically correct about Bourne
  175. shell grammar (try running the shell testscript "tests/sh.testcases"
  176. on it and compare vs bash) but for most things it works quite well.
  177. It also uses only vfork, so it can be used on uClinux systems.
  178. comment "Bourne Shell Options"
  179. depends on MSH || LASH || HUSH || ASH
  180. config FEATURE_SH_EXTRA_QUIET
  181. bool "Hide message on interactive shell startup"
  182. default n
  183. depends on MSH || LASH || HUSH || ASH
  184. help
  185. Remove the busybox introduction when starting a shell.
  186. config FEATURE_SH_STANDALONE_SHELL
  187. bool "Standalone shell"
  188. default n
  189. depends on MSH || LASH || HUSH || ASH
  190. help
  191. This option causes the selected busybox shell to use busybox applets
  192. in preference to executables in the PATH whenever possible. For
  193. example, entering the command 'ifconfig' into the shell would cause
  194. busybox to use the ifconfig busybox applet. Specifying the fully
  195. qualified executable name, such as '/sbin/ifconfig' will still
  196. execute the /sbin/ifconfig executable on the filesystem. This option
  197. is generally used when creating a statically linked version of busybox
  198. for use as a rescue shell, in the event that you screw up your system.
  199. Note that this will *also* cause applets to take precedence
  200. over shell builtins of the same name. So turning this on will
  201. eliminate any performance gained by turning on the builtin "echo"
  202. and "test" commands in ash.
  203. Note that when using this option, the shell will attempt to directly
  204. run '/bin/busybox'. If you do not have the busybox binary sitting in
  205. that exact location with that exact name, this option will not work at
  206. all.
  207. config FEATURE_COMMAND_EDITING
  208. bool "Command line editing"
  209. default n
  210. depends on MSH || LASH || HUSH || ASH
  211. help
  212. Enable command editing in shell.
  213. config FEATURE_COMMAND_EDITING_VI
  214. bool "vi-style line editing commands"
  215. default n
  216. depends on FEATURE_COMMAND_EDITING
  217. help
  218. Enable vi-style line editing in the shell. This mode can be
  219. turned on and off with "set -o vi" and "set +o vi".
  220. config FEATURE_COMMAND_HISTORY
  221. int "History size"
  222. range 0 99999
  223. default 15
  224. depends on FEATURE_COMMAND_EDITING
  225. help
  226. Specify command history size in shell.
  227. config FEATURE_COMMAND_SAVEHISTORY
  228. bool "History saving"
  229. default n
  230. depends on ASH && FEATURE_COMMAND_EDITING
  231. help
  232. Enable history saving in ash shell.
  233. config FEATURE_COMMAND_TAB_COMPLETION
  234. bool "Tab completion"
  235. default n
  236. depends on FEATURE_COMMAND_EDITING
  237. help
  238. Enable tab completion in shell.
  239. config FEATURE_COMMAND_USERNAME_COMPLETION
  240. bool "Username completion"
  241. default n
  242. depends on FEATURE_COMMAND_TAB_COMPLETION
  243. help
  244. Enable username completion in shell.
  245. config FEATURE_SH_FANCY_PROMPT
  246. bool "Fancy shell prompts"
  247. default n
  248. depends on FEATURE_COMMAND_EDITING
  249. help
  250. Setting this option allows for prompts to use things like \w and
  251. \$ and also using escape codes.
  252. endmenu