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/ash.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/ash.c')
-rw-r--r-- | shell/ash.c | 6 |
1 files changed, 3 insertions, 3 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 |