[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: list (comma) operator
From: |
James Youngman |
Subject: |
Re: list (comma) operator |
Date: |
Thu, 19 Jun 2003 09:35:56 +0100 |
User-agent: |
Mutt/1.3.28i |
On Wed, Jun 18, 2003 at 06:32:48PM -0400, address@hidden wrote:
> Hi,
>
> The manual says that the list operator evaluates to the value
> of its right-most operand. However, I'm seeing the opposite:
>
> $ touch a b
> $ find '(' -name a , -name b ')' -print
> ./a
Very odd - I see a different result with findutils 4.1.7 and the
current CVS code (4.2.0-CVS). I haven't checked 4.1.20, but I'm sure
it would give the same result here as 4.2.0-CVS.
address@hidden:~$ find --version
GNU find version 4.1.7
address@hidden:~$ rm a b ; touch a b ; find '(' -name a , -name b ')' -print
./b
address@hidden:~$ ~/source/GNU/findutils/trunk/compile.i386/find/find '(' -name
a , -name b ')' -print
./b
address@hidden:~$ ~/source/GNU/findutils/trunk/compile.i386/find/find --version
GNU find version 4.2.0-CVS
>
>
> >From the manual: (GNU find version 4.1)
>
> 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.
>