On Fri, Jul 28, 2006 at 02:56:13PM +0200, Dag-Erling Sm?rgrav wrote:
> Yar Tikhiy <[EMAIL PROTECTED]> 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
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to