aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shell/ash.c5
-rw-r--r--shell/hush.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 7843afaff..c726ad47e 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -8736,6 +8736,11 @@ static int ulimitcmd(int, char **) FAST_FUNC;
8736 * Additional operators: 8736 * Additional operators:
8737 * || and && should work as -o and -a 8737 * || and && should work as -o and -a
8738 * =~ regexp match 8738 * =~ regexp match
8739 * == should do _pattern match_ against right side. bash does this:
8740 * # [[ *a* == bab ]] && echo YES
8741 * # [[ bab == *a* ]] && echo YES
8742 * YES
8743 * != does the negated == (i.e., also with pattern matching)
8739 * Apart from the above, [[ expr ]] should work as [ expr ] 8744 * Apart from the above, [[ expr ]] should work as [ expr ]
8740 */ 8745 */
8741 8746
diff --git a/shell/hush.c b/shell/hush.c
index 54ab78b27..245fb586d 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -318,6 +318,11 @@ struct command {
318// Additional operators: 318// Additional operators:
319// || and && should work as -o and -a 319// || and && should work as -o and -a
320// =~ regexp match 320// =~ regexp match
321// == should do _pattern match_ against right side. bash does this:
322// # [[ *a* == bab ]] && echo YES
323// # [[ bab == *a* ]] && echo YES
324// YES
325// != does the negated == (i.e., also with pattern matching)
321// Apart from the above, [[ expr ]] should work as [ expr ] 326// Apart from the above, [[ expr ]] should work as [ expr ]
322 327
323/* used for "export noglob=* glob* a=`echo a b`" */ 328/* used for "export noglob=* glob* a=`echo a b`" */