Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Jul 2006 17:42:55 +0400
From:      Yar Tikhiy <yar@comp.chem.msu.su>
To:        Dag-Erling Sm?rgrav <des@des.no>
Cc:        cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/bin/test test.1
Message-ID:  <20060728134255.GF16454@comp.chem.msu.su>
In-Reply-To: <86lkqdvqfm.fsf@xps.des.no>
References:  <200607271908.k6RJ8Los011463@repoman.freebsd.org> <86lkqdvqfm.fsf@xps.des.no>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jul 28, 2006 at 02:56:13PM +0200, Dag-Erling Sm?rgrav wrote:
> Yar Tikhiy <yar@FreeBSD.org> writes:
> >   Log:
> >   Document that both sides of -a or -o are always evaluated.  This
> >   "feature" doesn't seem to be in the standards or elsewhere, and
> >   it is against what we are used to in C and sh(1), so put the
> >   paragraph under BUGS.
> 
> I don't understand what the issue is.  None of test's operators have
> side effects, so shortcut evaluation makes no difference.

I'm afraid this isn't quite true.  The difference is in a) performance
(can be considerable over NFS,) and b) audit records if file system
audit is enabled.  I also can imagine a pseudo file system that
takes certain actions on stat(2).  Not to mention auto-mounting on
demand, which is a special case of the latter.  IMHO this can justify
the humble paragraph in the manpage.

Any more objections?

-- 
Yar



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060728134255.GF16454>