summaryrefslogtreecommitdiff
path: root/shell/ash.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/ash.c')
-rw-r--r--shell/ash.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 7843afa..c726ad4 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -8736,6 +8736,11 @@ static int ulimitcmd(int, char **) FAST_FUNC;
* Additional operators:
* || and && should work as -o and -a
* =~ regexp match
+ * == should do _pattern match_ against right side. bash does this:
+ * # [[ *a* == bab ]] && echo YES
+ * # [[ bab == *a* ]] && echo YES
+ * YES
+ * != does the negated == (i.e., also with pattern matching)
* Apart from the above, [[ expr ]] should work as [ expr ]
*/