[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: differences between -false and comma "," operator
From: |
James Youngman |
Subject: |
Re: differences between -false and comma "," operator |
Date: |
Thu, 13 Oct 2005 23:06:51 +0100 |
User-agent: |
Mutt/1.5.9i |
On Wed, Oct 12, 2005 at 03:43:43PM -0700, Jeremy C. Reed wrote:
> The code in findutils is different for -false and comma "," operator.
>
> But the use appears to be same for my tests.
>
> The man page says:
>
> expr1 , expr2
> List; both expr1 and expr2 are always evaluated.
> The value of expr1 is discarded; the value of the
> list is the value of expr2.
>
> This appears to be same as:
>
> expr1 -false -o expr2
>
> What is different for the results of -false test and comma "," operator?
Modulo effects of operator precedence, they are the same, I think.
James.