aboutsummaryrefslogtreecommitdiff
path: root/shell/ash.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-06-10 14:09:48 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-06-10 14:09:48 +0200
commit77539190ab9ca49518cf7e7a7b052c913ca7709d (patch)
tree99e4067fcd326185966f63e7054f561826a4fcfb /shell/ash.c
parent9ca656b14945ec8462dc529ef5dc7662cce08296 (diff)
downloadbusybox-w32-77539190ab9ca49518cf7e7a7b052c913ca7709d.tar.gz
busybox-w32-77539190ab9ca49518cf7e7a7b052c913ca7709d.tar.bz2
busybox-w32-77539190ab9ca49518cf7e7a7b052c913ca7709d.zip
added comments about [[ ]] to ash and hush. no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
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 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