[PATCH] ash support for more test conditions
James Simmons
jsimmons at infradead.org
Mon Mar 24 16:28:39 UTC 2008
diff -urwN busybox-1.10.0.orig/shell/ash.c busybox-1.10.0/shell/ash.c
--- busybox-1.10.0.orig/shell/ash.c 2008-03-24 12:35:21.000000000 -0400
+++ busybox-1.10.0/shell/ash.c 2008-03-24 12:38:18.000000000 -0400
@@ -12823,12 +12823,21 @@
/* longest must be first */
static const char op_tokens[] ALIGN1 = {
+ '-','e','q',0, TOK_EQ,
+ '-','n','e',0, TOK_NE,
+ '-','l','t',0, TOK_LT,
+ '-','g','t',0, TOK_GT,
+ '-','g','e',0, TOK_GE,
+ '-','l','t',0, TOK_LT,
+ '-','l','e',0, TOK_LE,
'<','<','=',0, TOK_LSHIFT_ASSIGN,
'>','>','=',0, TOK_RSHIFT_ASSIGN,
'<','<', 0, TOK_LSHIFT,
'>','>', 0, TOK_RSHIFT,
'|','|', 0, TOK_OR,
+ '-','o', 0, TOK_OR,
'&','&', 0, TOK_AND,
+ '-','a', 0, TOK_AND,
'!','=', 0, TOK_NE,
'<','=', 0, TOK_LE,
'>','=', 0, TOK_GE,
More information about the busybox
mailing list