aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shell/ash.c6
-rw-r--r--shell/hush.c3
2 files changed, 4 insertions, 5 deletions
diff --git a/shell/ash.c b/shell/ash.c
index cfcc0b818..674a41bd3 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -209,15 +209,15 @@
209 * Status of [[ support: 209 * Status of [[ support:
210 * && and || work as they should 210 * && and || work as they should
211 * = is glob match operator, not equality operator: STR = GLOB 211 * = is glob match operator, not equality operator: STR = GLOB
212 * (in GLOB, quoting is significant on char-by-char basis: a*cd"*")
213 * == same as = 212 * == same as =
214 * add =~ regex match operator: STR =~ REGEX 213 * =~ is regex match operator: STR =~ REGEX
215 * TODO: 214 * TODO:
216 * singleword+noglob expansion: 215 * singleword+noglob expansion:
217 * v='a b'; [[ $v = 'a b' ]]; echo 0:$? 216 * v='a b'; [[ $v = 'a b' ]]; echo 0:$?
218 * [[ /bin/n* ]]; echo 0:$? 217 * [[ /bin/n* ]]; echo 0:$?
219 * quoting needs to be considered (-f is an operator, "-f" and ""-f are not; etc) 218 * quoting needs to be considered (-f is an operator, "-f" and ""-f are not; etc)
220 * ( ) < > should not have special meaning 219 * ( ) < > should not have special meaning (IOW: should not require quoting)
220 * in word = GLOB, quoting should be significant on char-by-char basis: a*cd"*"
221 */ 221 */
222#define BASH_TEST2 (ENABLE_ASH_BASH_COMPAT * ENABLE_ASH_TEST) 222#define BASH_TEST2 (ENABLE_ASH_BASH_COMPAT * ENABLE_ASH_TEST)
223#define BASH_SOURCE ENABLE_ASH_BASH_COMPAT 223#define BASH_SOURCE ENABLE_ASH_BASH_COMPAT
diff --git a/shell/hush.c b/shell/hush.c
index 7c1e1d748..ab7263381 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -63,7 +63,6 @@
63 * reserved words: function select 63 * reserved words: function select
64 * advanced test: [[ ]] 64 * advanced test: [[ ]]
65 * process substitution: <(list) and >(list) 65 * process substitution: <(list) and >(list)
66 * =~: regex operator
67 * let EXPR [EXPR...] 66 * let EXPR [EXPR...]
68 * Each EXPR is an arithmetic expression (ARITHMETIC EVALUATION) 67 * Each EXPR is an arithmetic expression (ARITHMETIC EVALUATION)
69 * If the last arg evaluates to 0, let returns 1; 0 otherwise. 68 * If the last arg evaluates to 0, let returns 1; 0 otherwise.
@@ -85,11 +84,11 @@
85 * v='a b'; [[ $v = 'a b' ]]; echo 0:$? 84 * v='a b'; [[ $v = 'a b' ]]; echo 0:$?
86 * [[ /bin/n* ]]; echo 0:$? 85 * [[ /bin/n* ]]; echo 0:$?
87 * = is glob match operator, not equality operator: STR = GLOB 86 * = is glob match operator, not equality operator: STR = GLOB
88 * (in GLOB, quoting is significant on char-by-char basis: a*cd"*")
89 * == same as = 87 * == same as =
90 * =~ is regex match operator: STR =~ REGEX 88 * =~ is regex match operator: STR =~ REGEX
91 * TODO: 89 * TODO:
92 * quoting needs to be considered (-f is an operator, "-f" and ""-f are not; etc) 90 * quoting needs to be considered (-f is an operator, "-f" and ""-f are not; etc)
91 * in word = GLOB, quoting should be significant on char-by-char basis: a*cd"*"
93 */ 92 */
94//config:config HUSH 93//config:config HUSH
95//config: bool "hush (68 kb)" 94//config: bool "hush (68 kb)"