From owner-freebsd-hackers Sun Mar 9 12:38:07 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id MAA09584 for hackers-outgoing; Sun, 9 Mar 1997 12:38:07 -0800 (PST) Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id MAA09533 for ; Sun, 9 Mar 1997 12:37:59 -0800 (PST) Received: from current1.whistle.com (current1.whistle.com [207.76.205.22]) by alpo.whistle.com (8.8.5/8.8.4) with SMTP id MAA11330; Sun, 9 Mar 1997 12:34:46 -0800 (PST) Message-ID: <33231E19.794BDF32@whistle.com> Date: Sun, 09 Mar 1997 12:31:22 -0800 From: Julian Elischer Organization: Whistle Communications X-Mailer: Mozilla 3.0Gold (X11; I; FreeBSD 2.2-CURRENT i386) MIME-Version: 1.0 To: gdr@wcs.uq.edu.au CC: steve howe , hackers@FreeBSD.ORG Subject: Re: expr failure References: <199703091320.XAA07975@ajax.che.curtin.edu.au> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Gary Roberts wrote: > > steve howe writes: > > > "/bin/expr" seems to be non-funtional. > > Works fine for me if you write the script properly. > > > !#/bin/sh > ^^ > #!/bin/sh > > > a=0; a='expr $a + 1' # right out of man page for expr > ^ ^ > > Are you sure that's not supposed to be a=`expr $a + 1` > Go read the man page again -- a bit more carefully. > With those two corrections output is `val is 1' on several flavours > of FreeBSD (from 1.1.5.1 to 2.2). I presume you did want `a' to be 1? > if you read this with netscape, then it (would you believe) shows reverse ' as ' e.g. in netscape these will be the same ` ' but I typed them differntly.. (duh) since I am using netscape to type this I don't even know if they actually got entered as different characters because they echo on the screen as the same.! > > case $a in > > 0) echo val is 0;; > > 1) echo val is 1;; > > esac > > > 2.1.5 - does this work for anyone? > > i'm not sure if bugs are to be considered a "fluke" > > or if they are considered a "normal" thing in this stage of FBSD > > development. please respond to sender in addition to maillist. > > You should really examine your code a bit more carefully before > casting such slurs on the developers. Knowing how hard they work, > I'm sure they would find your comments rather offensive. > > Cheers, > -- > Gary Roberts (gdr@wcs.uq.edu.au) (Ph +617 3844 0400 Fax +617 3844 0444) > 4th Floor, South Bank House, 234 Grey St, South Bank QLD 4101 Australia.