[PATCH] More ash test conditions.

Denys Vlasenko vda.linux at googlemail.com
Tue Apr 8 19:36:59 UTC 2008


On Tuesday 08 April 2008 20:47, James Simmons wrote:
> 
> Index: shell/ash.c
> ===================================================================
> --- shell/ash.c	(revision 21673)
> +++ shell/ash.c	(working copy)
> @@ -12878,12 +12878,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,

Can you give examples of changed behavior?
--
vda



More information about the busybox mailing list