diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-09-14 13:18:33 +1000 |
---|---|---|
committer | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-09-14 13:18:33 +1000 |
commit | b5139d7cd8982d9b683cb1babf0bd759076aaab0 (patch) | |
tree | eecdeb00ff226d1ff3da7844aee2a68f41b28ff5 /shell/ash.c | |
parent | 6a6efd31038d7afe977e3059508ae863e65cbdf5 (diff) | |
parent | 771f1995a99e63600a513f97ce35cbb9f6865138 (diff) | |
download | busybox-w32-b5139d7cd8982d9b683cb1babf0bd759076aaab0.tar.gz busybox-w32-b5139d7cd8982d9b683cb1babf0bd759076aaab0.tar.bz2 busybox-w32-b5139d7cd8982d9b683cb1babf0bd759076aaab0.zip |
Merge branch 'origin/master' (early part)
Conflicts:
shell/ash.c
Diffstat (limited to 'shell/ash.c')
-rw-r--r-- | shell/ash.c | 117 |
1 files changed, 117 insertions, 0 deletions
diff --git a/shell/ash.c b/shell/ash.c index e0b15e343..2cee0c42f 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -84,6 +84,123 @@ | |||
84 | # error "Do not even bother, ash will not run on NOMMU machine" | 84 | # error "Do not even bother, ash will not run on NOMMU machine" |
85 | #endif | 85 | #endif |
86 | 86 | ||
87 | //applet:IF_ASH(APPLET(ash, _BB_DIR_BIN, _BB_SUID_DROP)) | ||
88 | //applet:IF_FEATURE_SH_IS_ASH(APPLET_ODDNAME(sh, ash, _BB_DIR_BIN, _BB_SUID_DROP, sh)) | ||
89 | //applet:IF_FEATURE_BASH_IS_ASH(APPLET_ODDNAME(bash, ash, _BB_DIR_BIN, _BB_SUID_DROP, bash)) | ||
90 | |||
91 | //kbuild:lib-$(CONFIG_ASH) += ash.o ash_ptr_hack.o shell_common.o | ||
92 | //kbuild:lib-$(CONFIG_ASH_RANDOM_SUPPORT) += random.o | ||
93 | |||
94 | //config:config ASH | ||
95 | //config: bool "ash" | ||
96 | //config: default y | ||
97 | //config: depends on !NOMMU | ||
98 | //config: help | ||
99 | //config: Tha 'ash' shell adds about 60k in the default configuration and is | ||
100 | //config: the most complete and most pedantically correct shell included with | ||
101 | //config: busybox. This shell is actually a derivative of the Debian 'dash' | ||
102 | //config: shell (by Herbert Xu), which was created by porting the 'ash' shell | ||
103 | //config: (written by Kenneth Almquist) from NetBSD. | ||
104 | //config: | ||
105 | //config:config ASH_BASH_COMPAT | ||
106 | //config: bool "bash-compatible extensions" | ||
107 | //config: default y | ||
108 | //config: depends on ASH | ||
109 | //config: help | ||
110 | //config: Enable bash-compatible extensions. | ||
111 | //config: | ||
112 | //config:config ASH_JOB_CONTROL | ||
113 | //config: bool "Job control" | ||
114 | //config: default y | ||
115 | //config: depends on ASH | ||
116 | //config: help | ||
117 | //config: Enable job control in the ash shell. | ||
118 | //config: | ||
119 | //config:config ASH_ALIAS | ||
120 | //config: bool "alias support" | ||
121 | //config: default y | ||
122 | //config: depends on ASH | ||
123 | //config: help | ||
124 | //config: Enable alias support in the ash shell. | ||
125 | //config: | ||
126 | //config:config ASH_GETOPTS | ||
127 | //config: bool "Builtin getopt to parse positional parameters" | ||
128 | //config: default y | ||
129 | //config: depends on ASH | ||
130 | //config: help | ||
131 | //config: Enable getopts builtin in the ash shell. | ||
132 | //config: | ||
133 | //config:config ASH_BUILTIN_ECHO | ||
134 | //config: bool "Builtin version of 'echo'" | ||
135 | //config: default y | ||
136 | //config: depends on ASH | ||
137 | //config: help | ||
138 | //config: Enable support for echo, builtin to ash. | ||
139 | //config: | ||
140 | //config:config ASH_BUILTIN_PRINTF | ||
141 | //config: bool "Builtin version of 'printf'" | ||
142 | //config: default y | ||
143 | //config: depends on ASH | ||
144 | //config: help | ||
145 | //config: Enable support for printf, builtin to ash. | ||
146 | //config: | ||
147 | //config:config ASH_BUILTIN_TEST | ||
148 | //config: bool "Builtin version of 'test'" | ||
149 | //config: default y | ||
150 | //config: depends on ASH | ||
151 | //config: help | ||
152 | //config: Enable support for test, builtin to ash. | ||
153 | //config: | ||
154 | //config:config ASH_CMDCMD | ||
155 | //config: bool "'command' command to override shell builtins" | ||
156 | //config: default y | ||
157 | //config: depends on ASH | ||
158 | //config: help | ||
159 | //config: Enable support for the ash 'command' builtin, which allows | ||
160 | //config: you to run the specified command with the specified arguments, | ||
161 | //config: even when there is an ash builtin command with the same name. | ||
162 | //config: | ||
163 | //config:config ASH_MAIL | ||
164 | //config: bool "Check for new mail on interactive shells" | ||
165 | //config: default n | ||
166 | //config: depends on ASH | ||
167 | //config: help | ||
168 | //config: Enable "check for new mail" in the ash shell. | ||
169 | //config: | ||
170 | //config:config ASH_OPTIMIZE_FOR_SIZE | ||
171 | //config: bool "Optimize for size instead of speed" | ||
172 | //config: default y | ||
173 | //config: depends on ASH | ||
174 | //config: help | ||
175 | //config: Compile ash for reduced size at the price of speed. | ||
176 | //config: | ||
177 | //config:config ASH_RANDOM_SUPPORT | ||
178 | //config: bool "Pseudorandom generator and $RANDOM variable" | ||
179 | //config: default y | ||
180 | //config: depends on ASH | ||
181 | //config: help | ||
182 | //config: Enable pseudorandom generator and dynamic variable "$RANDOM". | ||
183 | //config: Each read of "$RANDOM" will generate a new pseudorandom value. | ||
184 | //config: You can reset the generator by using a specified start value. | ||
185 | //config: After "unset RANDOM" the generator will switch off and this | ||
186 | //config: variable will no longer have special treatment. | ||
187 | //config: | ||
188 | //config:config ASH_EXPAND_PRMT | ||
189 | //config: bool "Expand prompt string" | ||
190 | //config: default y | ||
191 | //config: depends on ASH | ||
192 | //config: help | ||
193 | //config: "PS#" may contain volatile content, such as backquote commands. | ||
194 | //config: This option recreates the prompt string from the environment | ||
195 | //config: variable each time it is displayed. | ||
196 | |||
197 | //usage:#define ash_trivial_usage NOUSAGE_STR | ||
198 | //usage:#define ash_full_usage "" | ||
199 | //usage:#define sh_trivial_usage NOUSAGE_STR | ||
200 | //usage:#define sh_full_usage "" | ||
201 | //usage:#define bash_trivial_usage NOUSAGE_STR | ||
202 | //usage:#define bash_full_usage "" | ||
203 | |||
87 | #if ENABLE_PLATFORM_MINGW32 | 204 | #if ENABLE_PLATFORM_MINGW32 |
88 | struct forkshell; | 205 | struct forkshell; |
89 | union node; | 206 | union node; |