Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Apr 2002 00:11:20 +0100 (BST)
From:      Mark Valentine <mark@thuvia.demon.co.uk>
To:        wollman@lcs.mit.edu (Garrett Wollman), Maxim Sobolev <sobomax@freebsd.org>
Cc:        cvs-all@freebsd.org
Subject:   Re: cvs commit: src/bin/expr expr.1 expr.y
Message-ID:  <200204222311.g3MNBKi50164@dotar.thuvia.org>
In-Reply-To: Garrett Wollman's message of Apr 22, 10:05pm

next in thread | raw e-mail | index | archive | help
> 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 <mark@thuvia.co.uk>       <http://www.thuvia.co.uk>;
"Tigers will do ANYTHING for a tuna fish sandwich."       Mark Valentine uses
"We're kind of stupid that way."   *munch* *munch*        and endorses FreeBSD
  -- <http://www.calvinandhobbes.com>;                  <http://www.freebsd.org>;

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200204222311.g3MNBKi50164>