[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [PATCH] test: give examples of when the "unknown operand" message
From:       Denys Vlasenko <vda.linux () googlemail ! com>
Date:       2010-12-20 2:44:03
Message-ID: 201012200344.03486.vda.linux () googlemail ! com
[Download RAW message or body]

On Monday 20 December 2010 00:29, James Youngman wrote:
> ---
>  coreutils/test.c |    5 ++++-
>  1 files changed, 4 insertions(+), 1 deletions(-)
> 
> diff --git a/coreutils/test.c b/coreutils/test.c
> index 6524c4f..77324d0 100644
> --- a/coreutils/test.c
> +++ b/coreutils/test.c
> @@ -878,7 +878,10 @@ int test_main(int argc, char **argv)
>  	res = !oexpr(check_operator(*args));
>  
>  	if (*args != NULL && *++args != NULL) {
> -		/* TODO: example when this happens? */
> +		/* Examples:
> +		   test 3 -lt 5 6
> +		   test -t 1 2
> +		 */
>  		bb_error_msg("%s: unknown operand", *args);

Applied, thanks!
-- 
vda
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic