9bd493fed5677f267c96b3322e831c7882b069f7
[oweals/busybox.git] / shell / Config.src
1 #
2 # For a description of the syntax of this configuration file,
3 # see scripts/kbuild/config-language.txt.
4 #
5
6 menu "Shells"
7
8
9 choice
10         prompt "Choose which shell is aliased to 'sh' name"
11         default SH_IS_ASH
12         help
13           Choose which shell you want to be executed by 'sh' alias.
14           The ash shell is the most bash compatible and full featured one.
15
16 # note: cannot use "select ASH" here, it breaks "make allnoconfig"
17 config SH_IS_ASH
18         depends on !NOMMU
19         bool "ash"
20         help
21           Choose ash to be the shell executed by 'sh' name.
22           The ash code will be built into busybox. If you don't select
23           "ash" choice (CONFIG_ASH), this shell may only be invoked by
24           the name 'sh' (and not 'ash').
25
26 config SH_IS_HUSH
27         bool "hush"
28         help
29           Choose hush to be the shell executed by 'sh' name.
30           The hush code will be built into busybox. If you don't select
31           "hush" choice (CONFIG_HUSH), this shell may only be invoked by
32           the name 'sh' (and not 'hush').
33
34 config SH_IS_NONE
35         bool "none"
36
37 endchoice
38
39 choice
40         prompt "Choose which shell is aliased to 'bash' name"
41         default BASH_IS_NONE
42         help
43           Choose which shell you want to be executed by 'bash' alias.
44           The ash shell is the most bash compatible and full featured one,
45           although compatibility is far from being complete.
46
47           Note that selecting this option does not switch on any bash
48           compatibility code. It merely makes it possible to install
49           /bin/bash (sym)link and run scripts which start with
50           #!/bin/bash line.
51
52           Many systems use it in scripts which use bash-specific features,
53           even simple ones like $RANDOM. Without this option, busybox
54           can't be used for running them because it won't recongnize
55           "bash" as a supported applet name.
56
57 config BASH_IS_ASH
58         depends on !NOMMU
59         bool "ash"
60         help
61           Choose ash to be the shell executed by 'bash' name.
62           The ash code will be built into busybox. If you don't select
63           "ash" choice (CONFIG_ASH), this shell may only be invoked by
64           the name 'bash' (and not 'ash').
65
66 config BASH_IS_HUSH
67         bool "hush"
68         help
69           Choose hush to be the shell executed by 'bash' name.
70           The hush code will be built into busybox. If you don't select
71           "hush" choice (CONFIG_HUSH), this shell may only be invoked by
72           the name 'bash' (and not 'hush').
73
74 config BASH_IS_NONE
75         bool "none"
76
77 endchoice
78
79
80 INSERT
81
82
83 config FEATURE_SH_MATH
84         bool "POSIX math support"
85         default y
86         depends on ASH || HUSH || SH_IS_ASH || BASH_IS_ASH || SH_IS_HUSH || BASH_IS_HUSH
87         help
88           Enable math support in the shell via $((...)) syntax.
89
90 config FEATURE_SH_MATH_64
91         bool "Extend POSIX math support to 64 bit"
92         default y
93         depends on FEATURE_SH_MATH
94         help
95           Enable 64-bit math support in the shell. This will make the shell
96           slightly larger, but will allow computation with very large numbers.
97           This is not in POSIX, so do not rely on this in portable code.
98
99 config FEATURE_SH_EXTRA_QUIET
100         bool "Hide message on interactive shell startup"
101         default y
102         depends on ASH || HUSH || SH_IS_ASH || BASH_IS_ASH || SH_IS_HUSH || BASH_IS_HUSH
103         help
104           Remove the busybox introduction when starting a shell.
105
106 config FEATURE_SH_STANDALONE
107         bool "Standalone shell"
108         default n
109         depends on ASH || HUSH || SH_IS_ASH || BASH_IS_ASH || SH_IS_HUSH || BASH_IS_HUSH
110         help
111           This option causes busybox shells to use busybox applets
112           in preference to executables in the PATH whenever possible. For
113           example, entering the command 'ifconfig' into the shell would cause
114           busybox to use the ifconfig busybox applet. Specifying the fully
115           qualified executable name, such as '/sbin/ifconfig' will still
116           execute the /sbin/ifconfig executable on the filesystem. This option
117           is generally used when creating a statically linked version of busybox
118           for use as a rescue shell, in the event that you screw up your system.
119
120           This is implemented by re-execing /proc/self/exe (typically)
121           with right parameters. Some selected applets ("NOFORK" applets)
122           can even be executed without creating new process.
123           Instead, busybox will call <applet>_main() internally.
124
125           However, this causes problems in chroot jails without mounted /proc
126           and with ps/top (command name can be shown as 'exe' for applets
127           started this way).
128 # untrue?
129 #         Note that this will *also* cause applets to take precedence
130 #         over shell builtins of the same name. So turning this on will
131 #         eliminate any performance gained by turning on the builtin "echo"
132 #         and "test" commands in ash.
133 # untrue?
134 #         Note that when using this option, the shell will attempt to directly
135 #         run '/bin/busybox'. If you do not have the busybox binary sitting in
136 #         that exact location with that exact name, this option will not work at
137 #         all.
138
139 config FEATURE_SH_NOFORK
140         bool "Run 'nofork' applets directly"
141         default n
142         depends on ASH || HUSH || SH_IS_ASH || BASH_IS_ASH || SH_IS_HUSH || BASH_IS_HUSH
143         help
144           This option causes busybox shells to not execute typical
145           fork/exec/wait sequence, but call <applet>_main directly,
146           if possible. (Sometimes it is not possible: for example,
147           this is not possible in pipes).
148
149           This will be done only for some applets (those which are marked
150           NOFORK in include/applets.h).
151
152           This may significantly speed up some shell scripts.
153
154           This feature is relatively new. Use with care. Report bugs
155           to project mailing list.
156
157 config FEATURE_SH_HISTFILESIZE
158         bool "Use $HISTFILESIZE"
159         default y
160         depends on ASH || HUSH || SH_IS_ASH || BASH_IS_ASH || SH_IS_HUSH || BASH_IS_HUSH
161         help
162           This option makes busybox shells to use $HISTFILESIZE variable
163           to set shell history size. Note that its max value is capped
164           by "History size" setting in library tuning section.
165
166
167 endmenu