summaryrefslogtreecommitdiff
path: root/shell/hush.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/hush.c')
-rw-r--r--shell/hush.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/shell/hush.c b/shell/hush.c
index 54ab78b..245fb58 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -318,6 +318,11 @@ struct command {
// 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 ]
/* used for "export noglob=* glob* a=`echo a b`" */