From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7019 invoked from network); 13 Sep 2006 01:17:19 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.5 (2006-08-29) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 13 Sep 2006 01:17:19 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 33435 invoked from network); 13 Sep 2006 01:17:10 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 13 Sep 2006 01:17:10 -0000 Received: (qmail 10472 invoked by alias); 13 Sep 2006 01:17:07 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 22701 Received: (qmail 10463 invoked from network); 13 Sep 2006 01:17:06 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 13 Sep 2006 01:17:06 -0000 Received: (qmail 33149 invoked from network); 13 Sep 2006 01:17:06 -0000 Received: from vms042pub.verizon.net (206.46.252.42) by a.mx.sunsite.dk with SMTP; 13 Sep 2006 01:17:05 -0000 Received: from torch.brasslantern.com ([71.116.118.106]) by vms042.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J5I005Z7BK08G86@vms042.mailsrvcs.net> for zsh-workers@sunsite.dk; Tue, 12 Sep 2006 20:16:53 -0500 (CDT) Received: from torch.brasslantern.com (localhost.localdomain [127.0.0.1]) by torch.brasslantern.com (8.13.1/8.13.1) with ESMTP id k8D1Gl8D024253; Tue, 12 Sep 2006 18:16:48 -0700 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id k8D1Glud024252; Tue, 12 Sep 2006 18:16:47 -0700 Date: Tue, 12 Sep 2006 18:16:47 -0700 From: Bart Schaefer Subject: Re: The test command In-reply-to: To: zsh-workers@sunsite.dk Cc: bug-coreutils@gnu.org Message-id: <060912181647.ZM24251@torch.brasslantern.com> MIME-version: 1.0 X-Mailer: OpenZMail Classic (0.9.2 24April2005) Content-type: text/plain; charset=us-ascii References: Comments: In reply to Dave Yost "The test command" (Sep 12, 11:20am) I'm CC'ing this to bug-coreutils with the full expectation that it'll bounce because I'm not subscribed. On Sep 12, 11:20am, Dave Yost wrote: } } I propose this addition to the age-old test command: Unlikely. It breaks backwards compatibility. "test" is one of those things that's now SO old, that essentially no changes are allowed. [*] The meaning of test --verbose is equivalent to test --verbose != '' and there might somewhere be a script that depends upon string=--verbose test $string to work correctly. } The usefulness of this is shown in this example: } } if ! test --verbose -e "$file" ; then } exit $? } fi zmodload -i zsh/system if ! test -e "$file"; then syserror >&2 exit $? fi [*] Zsh sometimes makes exceptions in places where a syntax error would occur in the older version of the command, but never in places where the change would alter the semantics of working syntax.