From owner-cvs-src@FreeBSD.ORG  Thu Jul 27 20:30:39 2006
Return-Path: <owner-cvs-src@FreeBSD.ORG>
X-Original-To: cvs-src@freebsd.org
Delivered-To: cvs-src@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 4ACDA16A4DA;
	Thu, 27 Jul 2006 20:30:39 +0000 (UTC) (envelope-from jhb@freebsd.org)
Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net
	[66.23.211.162])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 7BFC543D4C;
	Thu, 27 Jul 2006 20:30:38 +0000 (GMT) (envelope-from jhb@freebsd.org)
Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1])
	(authenticated bits=0)
	by server.baldwin.cx (8.13.4/8.13.4) with ESMTP id k6RKUa9C080278;
	Thu, 27 Jul 2006 16:30:37 -0400 (EDT) (envelope-from jhb@freebsd.org)
From: John Baldwin <jhb@freebsd.org>
To: Andrey Chernov <ache@freebsd.org>
Date: Thu, 27 Jul 2006 16:30:33 -0400
User-Agent: KMail/1.9.1
References: <200607271908.k6RJ8Los011463@repoman.freebsd.org>
	<20060727200602.GA99525@nagual.pp.ru>
	<20060727200802.GB99525@nagual.pp.ru>
In-Reply-To: <20060727200802.GB99525@nagual.pp.ru>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200607271630.34673.jhb@freebsd.org>
X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by
	milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]);
	Thu, 27 Jul 2006 16:30:37 -0400 (EDT)
X-Virus-Scanned: ClamAV 0.87.1/1624/Thu Jul 27 13:11:25 2006 on
	server.baldwin.cx
X-Virus-Status: Clean
X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 
	autolearn=ham version=3.1.0
X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on server.baldwin.cx
Cc: cvs-src@freebsd.org, Yar Tikhiy <yar@freebsd.org>,
	src-committers@freebsd.org, cvs-all@freebsd.org
Subject: Re: cvs commit: src/bin/test test.1
X-BeenThere: cvs-src@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: CVS commit messages for the src tree <cvs-src.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/cvs-src>,
	<mailto:cvs-src-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/cvs-src>
List-Post: <mailto:cvs-src@freebsd.org>
List-Help: <mailto:cvs-src-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/cvs-src>,
	<mailto:cvs-src-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Thu, 27 Jul 2006 20:30:39 -0000

On Thursday 27 July 2006 16:08, Andrey Chernov wrote:
> On Fri, Jul 28, 2006 at 12:06:02AM +0400, Andrey Chernov wrote:
> > On Thu, Jul 27, 2006 at 07:08:21PM +0000, Yar Tikhiy wrote:
> > > yar         2006-07-27 19:08:21 UTC
> > > 
> > >   FreeBSD src repository
> > > 
> > >   Modified files:
> > >     bin/test             test.1 
> > >   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.
> > 
> > We should examine what POSIX or POSIX test suits says here, if any.
> 
> I mean, in the sh(1), not in the test(1) which is command line and nothing 
> can be done here due to pre-parsed args.

I think it would be really, really odd to have [ behave differently for 
different sh(1) implementations depending on whether or not [ is a built-in 
or not.  The only sane thing there seems to be to have the behaviors be 
identical.

-- 
John Baldwin