diff options
Diffstat (limited to 'shell/ash.c')
-rw-r--r-- | shell/ash.c | 85 |
1 files changed, 36 insertions, 49 deletions
diff --git a/shell/ash.c b/shell/ash.c index 9c46a93e0..20ed9652c 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -35,8 +35,6 @@ | |||
35 | //config: bool "Optimize for size instead of speed" | 35 | //config: bool "Optimize for size instead of speed" |
36 | //config: default y | 36 | //config: default y |
37 | //config: depends on ASH || SH_IS_ASH || BASH_IS_ASH | 37 | //config: depends on ASH || SH_IS_ASH || BASH_IS_ASH |
38 | //config: help | ||
39 | //config: Compile ash for reduced size at the price of speed. | ||
40 | //config: | 38 | //config: |
41 | //config:config ASH_INTERNAL_GLOB | 39 | //config:config ASH_INTERNAL_GLOB |
42 | //config: bool "Use internal glob() implementation" | 40 | //config: bool "Use internal glob() implementation" |
@@ -46,6 +44,23 @@ | |||
46 | //config: Do not use glob() function from libc, use internal implementation. | 44 | //config: Do not use glob() function from libc, use internal implementation. |
47 | //config: Use this if you are getting "glob.h: No such file or directory" | 45 | //config: Use this if you are getting "glob.h: No such file or directory" |
48 | //config: or similar build errors. | 46 | //config: or similar build errors. |
47 | //config: Note that as of now (2017-01), uclibc and musl glob() both have bugs | ||
48 | //config: which would break ash if you select N here. | ||
49 | //config: | ||
50 | //config:config ASH_BASH_COMPAT | ||
51 | //config: bool "bash-compatible extensions" | ||
52 | //config: default y | ||
53 | //config: depends on ASH || SH_IS_ASH || BASH_IS_ASH | ||
54 | //config: | ||
55 | //config:config ASH_JOB_CONTROL | ||
56 | //config: bool "Job control" | ||
57 | //config: default y | ||
58 | //config: depends on ASH || SH_IS_ASH || BASH_IS_ASH | ||
59 | //config: | ||
60 | //config:config ASH_ALIAS | ||
61 | //config: bool "Alias support" | ||
62 | //config: default y | ||
63 | //config: depends on ASH || SH_IS_ASH || BASH_IS_ASH | ||
49 | //config: | 64 | //config: |
50 | //config:config ASH_RANDOM_SUPPORT | 65 | //config:config ASH_RANDOM_SUPPORT |
51 | //config: bool "Pseudorandom generator and $RANDOM variable" | 66 | //config: bool "Pseudorandom generator and $RANDOM variable" |
@@ -63,88 +78,60 @@ | |||
63 | //config: default y | 78 | //config: default y |
64 | //config: depends on ASH || SH_IS_ASH || BASH_IS_ASH | 79 | //config: depends on ASH || SH_IS_ASH || BASH_IS_ASH |
65 | //config: help | 80 | //config: help |
66 | //config: "PS#" may contain volatile content, such as backquote commands. | 81 | //config: $PS# may contain volatile content, such as backquote commands. |
67 | //config: This option recreates the prompt string from the environment | 82 | //config: This option recreates the prompt string from the environment |
68 | //config: variable each time it is displayed. | 83 | //config: variable each time it is displayed. |
69 | //config: | 84 | //config: |
70 | //config:config ASH_BASH_COMPAT | ||
71 | //config: bool "bash-compatible extensions" | ||
72 | //config: default y | ||
73 | //config: depends on ASH || SH_IS_ASH || BASH_IS_ASH | ||
74 | //config: help | ||
75 | //config: Enable bash-compatible extensions. | ||
76 | //config: | ||
77 | //config:config ASH_IDLE_TIMEOUT | 85 | //config:config ASH_IDLE_TIMEOUT |
78 | //config: bool "Idle timeout variable" | 86 | //config: bool "Idle timeout variable $TMOUT" |
79 | //config: default n | ||
80 | //config: depends on ASH || SH_IS_ASH || BASH_IS_ASH | ||
81 | //config: help | ||
82 | //config: Enables bash-like auto-logout after $TMOUT seconds of idle time. | ||
83 | //config: | ||
84 | //config:config ASH_JOB_CONTROL | ||
85 | //config: bool "Job control" | ||
86 | //config: default y | ||
87 | //config: depends on ASH || SH_IS_ASH || BASH_IS_ASH | ||
88 | //config: help | ||
89 | //config: Enable job control in the ash shell. | ||
90 | //config: | ||
91 | //config:config ASH_ALIAS | ||
92 | //config: bool "Alias support" | ||
93 | //config: default y | 87 | //config: default y |
94 | //config: depends on ASH || SH_IS_ASH || BASH_IS_ASH | 88 | //config: depends on ASH || SH_IS_ASH || BASH_IS_ASH |
95 | //config: help | 89 | //config: help |
96 | //config: Enable alias support in the ash shell. | 90 | //config: Enable bash-like auto-logout after $TMOUT seconds of idle time. |
97 | //config: | 91 | //config: |
98 | //config:config ASH_GETOPTS | 92 | //config:config ASH_MAIL |
99 | //config: bool "Builtin getopt to parse positional parameters" | 93 | //config: bool "Check for new mail in interactive shell" |
100 | //config: default y | 94 | //config: default y |
101 | //config: depends on ASH || SH_IS_ASH || BASH_IS_ASH | 95 | //config: depends on ASH || SH_IS_ASH || BASH_IS_ASH |
102 | //config: help | 96 | //config: help |
103 | //config: Enable support for getopts builtin in ash. | 97 | //config: Enable "check for new mail" function: |
98 | //config: if set, $MAIL file and $MAILPATH list of files | ||
99 | //config: are checked for mtime changes, and "you have mail" | ||
100 | //config: message is printed if change is detected. | ||
104 | //config: | 101 | //config: |
105 | //config:config ASH_BUILTIN_ECHO | 102 | //config:config ASH_BUILTIN_ECHO |
106 | //config: bool "Builtin version of 'echo'" | 103 | //config: bool "echo builtin" |
107 | //config: default y | 104 | //config: default y |
108 | //config: depends on ASH || SH_IS_ASH || BASH_IS_ASH | 105 | //config: depends on ASH || SH_IS_ASH || BASH_IS_ASH |
109 | //config: help | ||
110 | //config: Enable support for echo builtin in ash. | ||
111 | //config: | 106 | //config: |
112 | //config:config ASH_BUILTIN_PRINTF | 107 | //config:config ASH_BUILTIN_PRINTF |
113 | //config: bool "Builtin version of 'printf'" | 108 | //config: bool "printf builtin" |
114 | //config: default y | 109 | //config: default y |
115 | //config: depends on ASH || SH_IS_ASH || BASH_IS_ASH | 110 | //config: depends on ASH || SH_IS_ASH || BASH_IS_ASH |
116 | //config: help | ||
117 | //config: Enable support for printf builtin in ash. | ||
118 | //config: | 111 | //config: |
119 | //config:config ASH_BUILTIN_TEST | 112 | //config:config ASH_BUILTIN_TEST |
120 | //config: bool "Builtin version of 'test'" | 113 | //config: bool "test builtin" |
121 | //config: default y | 114 | //config: default y |
122 | //config: depends on ASH || SH_IS_ASH || BASH_IS_ASH | 115 | //config: depends on ASH || SH_IS_ASH || BASH_IS_ASH |
123 | //config: help | ||
124 | //config: Enable support for test builtin in ash. | ||
125 | //config: | 116 | //config: |
126 | //config:config ASH_HELP | 117 | //config:config ASH_HELP |
127 | //config: bool "help builtin" | 118 | //config: bool "help builtin" |
128 | //config: default y | 119 | //config: default y |
129 | //config: depends on ASH || SH_IS_ASH || BASH_IS_ASH | 120 | //config: depends on ASH || SH_IS_ASH || BASH_IS_ASH |
130 | //config: help | ||
131 | //config: Enable help builtin in ash. | ||
132 | //config: | 121 | //config: |
133 | //config:config ASH_CMDCMD | 122 | //config:config ASH_GETOPTS |
134 | //config: bool "'command' command to override shell builtins" | 123 | //config: bool "getopts builtin" |
135 | //config: default y | 124 | //config: default y |
136 | //config: depends on ASH || SH_IS_ASH || BASH_IS_ASH | 125 | //config: depends on ASH || SH_IS_ASH || BASH_IS_ASH |
137 | //config: help | ||
138 | //config: Enable support for the ash 'command' builtin, which allows | ||
139 | //config: you to run the specified command with the specified arguments, | ||
140 | //config: even when there is an ash builtin command with the same name. | ||
141 | //config: | 126 | //config: |
142 | //config:config ASH_MAIL | 127 | //config:config ASH_CMDCMD |
143 | //config: bool "Check for new mail on interactive shells" | 128 | //config: bool "command builtin" |
144 | //config: default y | 129 | //config: default y |
145 | //config: depends on ASH || SH_IS_ASH || BASH_IS_ASH | 130 | //config: depends on ASH || SH_IS_ASH || BASH_IS_ASH |
146 | //config: help | 131 | //config: help |
147 | //config: Enable "check for new mail" function in the ash shell. | 132 | //config: Enable support for the 'command' builtin, which allows |
133 | //config: you to run the specified command or builtin, | ||
134 | //config: even when there is a function with the same name. | ||
148 | //config: | 135 | //config: |
149 | //config:endif # ash options | 136 | //config:endif # ash options |
150 | 137 | ||