From owner-cvs-all Mon Apr 22 16:18:10 2002 Delivered-To: cvs-all@freebsd.org Received: from thuvia.demon.co.uk (thuvia.demon.co.uk [193.237.34.248]) by hub.freebsd.org (Postfix) with ESMTP id 0C14E37B438; Mon, 22 Apr 2002 16:11:24 -0700 (PDT) Received: from dotar.thuvia.org (dotar.thuvia.org [10.0.0.4]) by phaidor.thuvia.org (8.11.6/8.11.6) with ESMTP id g3MNBLg01695; Tue, 23 Apr 2002 00:11:21 +0100 (BST) (envelope-from mark@thuvia.demon.co.uk) Received: (from mark@localhost) by dotar.thuvia.org (8.11.6/8.11.6) id g3MNBKi50164; Tue, 23 Apr 2002 00:11:20 +0100 (BST) (envelope-from mark) Date: Tue, 23 Apr 2002 00:11:20 +0100 (BST) From: Mark Valentine Message-Id: <200204222311.g3MNBKi50164@dotar.thuvia.org> In-Reply-To: Garrett Wollman's message of Apr 22, 10:05pm X-Mailer: Mail User's Shell (7.2.6 beta(5) 10/07/98) To: wollman@lcs.mit.edu (Garrett Wollman), Maxim Sobolev Subject: Re: cvs commit: src/bin/expr expr.1 expr.y Cc: cvs-all@freebsd.org Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > From: wollman@lcs.mit.edu (Garrett Wollman) > Date: Mon 22 Apr, 2002 > Subject: Re: cvs commit: src/bin/expr expr.1 expr.y > If it breaks libtool, then libtool is also broken under any > UNIX-branded operating system (such as Solaris) which seems unlikely > to me. $ cat /etc/release Solaris 8 10/01 s28s_u6wos_08a SPARC Copyright 2001 Sun Microsystems, Inc. All Rights Reserved. Assembled 12 September 2001 $ expr -- -1 + 2 1 $ expr -1 + 2 1 $ expr '-lfoo' : '-l\(.*\)' foo So Solaris bows to POSIX to discard "--", but otherwise behaves as expr(1) has done since the dawn of time. Open UNIX 8 behaves the same way. Do any real implementations actually break either of the last two cases? (I don't know how to access the GNU sh-utils CVS repository to see what Paul Eggert's done in this regard.) Cheers, Mark. -- Mark Valentine, Thuvia Labs "Tigers will do ANYTHING for a tuna fish sandwich." Mark Valentine uses "We're kind of stupid that way." *munch* *munch* and endorses FreeBSD -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message