diff options
author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-05-08 17:27:17 +0000 |
---|---|---|
committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-05-08 17:27:17 +0000 |
commit | 92ce299856803ce2a2e59c4bfd2cc9edce90d3f7 (patch) | |
tree | c94def6f5c4cfbbcc1a7a70d96e721eb433ed01f /shell | |
parent | fc24e2de044defa5e26e99a125dc2b361cab184a (diff) | |
download | busybox-w32-92ce299856803ce2a2e59c4bfd2cc9edce90d3f7.tar.gz busybox-w32-92ce299856803ce2a2e59c4bfd2cc9edce90d3f7.tar.bz2 busybox-w32-92ce299856803ce2a2e59c4bfd2cc9edce90d3f7.zip |
tail: fix SEGV on "tail -N"
config system: clarify PREFER_APPLETS/SH_STANDALONE effects in help text
git-svn-id: svn://busybox.net/trunk/busybox@18585 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'shell')
-rw-r--r-- | shell/Config.in | 29 |
1 files changed, 19 insertions, 10 deletions
diff --git a/shell/Config.in b/shell/Config.in index f3726e302..027993483 100644 --- a/shell/Config.in +++ b/shell/Config.in | |||
@@ -242,7 +242,7 @@ config FEATURE_SH_STANDALONE | |||
242 | default n | 242 | default n |
243 | depends on (MSH || LASH || HUSH || ASH) && FEATURE_PREFER_APPLETS | 243 | depends on (MSH || LASH || HUSH || ASH) && FEATURE_PREFER_APPLETS |
244 | help | 244 | help |
245 | This option causes the selected busybox shell to use busybox applets | 245 | This option causes busybox shells to use busybox applets |
246 | in preference to executables in the PATH whenever possible. For | 246 | in preference to executables in the PATH whenever possible. For |
247 | example, entering the command 'ifconfig' into the shell would cause | 247 | example, entering the command 'ifconfig' into the shell would cause |
248 | busybox to use the ifconfig busybox applet. Specifying the fully | 248 | busybox to use the ifconfig busybox applet. Specifying the fully |
@@ -251,14 +251,23 @@ config FEATURE_SH_STANDALONE | |||
251 | is generally used when creating a statically linked version of busybox | 251 | is generally used when creating a statically linked version of busybox |
252 | for use as a rescue shell, in the event that you screw up your system. | 252 | for use as a rescue shell, in the event that you screw up your system. |
253 | 253 | ||
254 | Note that this will *also* cause applets to take precedence | 254 | This is implemented by re-execing /proc/self/exe (typically) |
255 | over shell builtins of the same name. So turning this on will | 255 | with right parameters. Some selected applets ("NOFORK" applets) |
256 | eliminate any performance gained by turning on the builtin "echo" | 256 | can even be executed without creating new process. |
257 | and "test" commands in ash. | 257 | Instead, busybox will call <applet>_main() internally. |
258 | 258 | ||
259 | Note that when using this option, the shell will attempt to directly | 259 | However, this causes problems in chroot jails without mounted /proc |
260 | run '/bin/busybox'. If you do not have the busybox binary sitting in | 260 | and with ps/top (command name can be shown as 'exe' for applets |
261 | that exact location with that exact name, this option will not work at | 261 | started this way). |
262 | all. | 262 | # untrue? |
263 | # Note that this will *also* cause applets to take precedence | ||
264 | # over shell builtins of the same name. So turning this on will | ||
265 | # eliminate any performance gained by turning on the builtin "echo" | ||
266 | # and "test" commands in ash. | ||
267 | # untrue? | ||
268 | # Note that when using this option, the shell will attempt to directly | ||
269 | # run '/bin/busybox'. If you do not have the busybox binary sitting in | ||
270 | # that exact location with that exact name, this option will not work at | ||
271 | # all. | ||
263 | 272 | ||
264 | endmenu | 273 | endmenu |