From owner-cvs-all@FreeBSD.ORG Fri Jul 28 13:43:17 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1869816A4DF; Fri, 28 Jul 2006 13:43:17 +0000 (UTC) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (comp.chem.msu.su [158.250.32.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id F0B4743D8B; Fri, 28 Jul 2006 13:43:05 +0000 (GMT) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (localhost [127.0.0.1]) by comp.chem.msu.su (8.13.4/8.13.3) with ESMTP id k6SDgvJl018848; Fri, 28 Jul 2006 17:42:57 +0400 (MSD) (envelope-from yar@comp.chem.msu.su) Received: (from yar@localhost) by comp.chem.msu.su (8.13.4/8.13.3/Submit) id k6SDgtYk018847; Fri, 28 Jul 2006 17:42:55 +0400 (MSD) (envelope-from yar) Date: Fri, 28 Jul 2006 17:42:55 +0400 From: Yar Tikhiy To: Dag-Erling Sm?rgrav Message-ID: <20060728134255.GF16454@comp.chem.msu.su> References: <200607271908.k6RJ8Los011463@repoman.freebsd.org> <86lkqdvqfm.fsf@xps.des.no> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <86lkqdvqfm.fsf@xps.des.no> User-Agent: Mutt/1.5.9i Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/bin/test test.1 X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Jul 2006 13:43:17 -0000 On Fri, Jul 28, 2006 at 02:56:13PM +0200, Dag-Erling Sm?rgrav wrote: > Yar Tikhiy 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