summaryrefslogtreecommitdiffhomepage
path: root/shell/ash.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2020-10-31 04:32:34 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2020-10-31 04:32:34 +0100
commita7c065354f820560621aa5f2e90498d6636f41c3 (patch)
tree0ecf66871092e10b89482ba3c656e294baedbed6 /shell/ash.c
parentb259e97d47de9a3f6b3dc4538159e57544c04a01 (diff)
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.c6
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 @@
* Status of [[ support:
* && and || work as they should
* = is glob match operator, not equality operator: STR = GLOB
- * (in GLOB, quoting is significant on char-by-char basis: a*cd"*")
* == same as =
- * add =~ regex match operator: STR =~ REGEX
+ * =~ is regex match operator: STR =~ REGEX
* TODO:
* singleword+noglob expansion:
* v='a b'; [[ $v = 'a b' ]]; echo 0:$?
* [[ /bin/n* ]]; echo 0:$?
* quoting needs to be considered (-f is an operator, "-f" and ""-f are not; etc)
- * ( ) < > should not have special meaning
+ * ( ) < > should not have special meaning (IOW: should not require quoting)
+ * in word = GLOB, quoting should be significant on char-by-char basis: a*cd"*"
*/
#define BASH_TEST2 (ENABLE_ASH_BASH_COMPAT * ENABLE_ASH_TEST)
#define BASH_SOURCE ENABLE_ASH_BASH_COMPAT