From 77539190ab9ca49518cf7e7a7b052c913ca7709d Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Wed, 10 Jun 2009 14:09:48 +0200 Subject: added comments about [[ ]] to ash and hush. no code changes Signed-off-by: Denys Vlasenko --- shell/ash.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'shell/ash.c') 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; * 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 ] */ -- cgit v1.2.3