diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2020-10-31 04:32:34 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2020-10-31 04:32:34 +0100 |
commit | a7c065354f820560621aa5f2e90498d6636f41c3 (patch) | |
tree | 0ecf66871092e10b89482ba3c656e294baedbed6 /shell/hush.c | |
parent | b259e97d47de9a3f6b3dc4538159e57544c04a01 (diff) | |
download | busybox-w32-a7c065354f820560621aa5f2e90498d6636f41c3.tar.gz busybox-w32-a7c065354f820560621aa5f2e90498d6636f41c3.tar.bz2 busybox-w32-a7c065354f820560621aa5f2e90498d6636f41c3.zip |
shell: update comments on the status of [[ ]] compat
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush.c')
-rw-r--r-- | shell/hush.c | 3 |
1 files changed, 1 insertions, 2 deletions
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)" |