aboutsummaryrefslogtreecommitdiff
path: root/shell/Config.src
diff options
context:
space:
mode:
Diffstat (limited to 'shell/Config.src')
-rw-r--r--shell/Config.src59
1 files changed, 0 insertions, 59 deletions
diff --git a/shell/Config.src b/shell/Config.src
index 6389d943a..c9c2439e7 100644
--- a/shell/Config.src
+++ b/shell/Config.src
@@ -62,29 +62,6 @@ config FEATURE_BASH_IS_NONE
62endchoice 62endchoice
63 63
64 64
65config LASH
66 bool "lash (deprecated: aliased to hush)"
67 default n
68 select HUSH
69 help
70 lash is deprecated and will be removed, please migrate to hush.
71
72config MSH
73 bool "msh (deprecated: please use hush)"
74 default n
75 select HUSH
76 help
77 msh is deprecated and will be removed, please migrate to hush.
78 If there is a feature msh has but hush does not, please let us know.
79
80# The minix shell (adds just 30k) is quite complete and handles things
81# like for/do/done, case/esac and all the things you expect a Bourne
82# shell to do. It is not always pedantically correct about Bourne
83# shell grammar (try running the shell testscript "tests/sh.testcases"
84# on it and compare vs bash) but for most things it works quite well.
85# It uses only vfork, so it can be used on uClinux systems.
86
87
88config SH_MATH_SUPPORT 65config SH_MATH_SUPPORT
89 bool "POSIX math support" 66 bool "POSIX math support"
90 default y 67 default y
@@ -158,40 +135,4 @@ config FEATURE_SH_NOFORK
158 135
159 This feature is relatively new. Use with care. 136 This feature is relatively new. Use with care.
160 137
161config CTTYHACK
162 bool "cttyhack"
163 default y
164 help
165 One common problem reported on the mailing list is "can't access tty;
166 job control turned off" error message which typically appears when
167 one tries to use shell with stdin/stdout opened to /dev/console.
168 This device is special - it cannot be a controlling tty.
169
170 Proper solution is to use correct device instead of /dev/console.
171
172 cttyhack provides "quick and dirty" solution to this problem.
173 It analyzes stdin with various ioctls, trying to determine whether
174 it is a /dev/ttyN or /dev/ttySN (virtual terminal or serial line).
175 If it detects one, it closes stdin/out/err and reopens that device.
176 Then it executes given program. Opening the device will make
177 that device a controlling tty. This may require cttyhack
178 to be a session leader.
179
180 Example for /etc/inittab (for busybox init):
181
182 ::respawn:/bin/cttyhack /bin/sh
183
184 Starting an interactive shell from boot shell script:
185
186 setsid cttyhack sh
187
188 Giving controlling tty to shell running with PID 1:
189
190 # exec cttyhack sh
191
192 Without cttyhack, you need to know exact tty name,
193 and do something like this:
194
195 # exec setsid sh -c 'exec sh </dev/tty1 >/dev/tty1 2>&1'
196
197endmenu 138endmenu