Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Sep 2004 10:31:39 +0400
From:      Wartan Hachaturow <wartan.hachaturow@gmail.com>
To:        James William Pye <flaw@rhid.com>
Cc:        FreeBSD Standards <freebsd-standards@freebsd.org>
Subject:   Re: /bin/test asdf -ge 0
Message-ID:  <4aaa2e1c0409082331317e70e0@mail.gmail.com>
In-Reply-To: <1094566670.80264.78.camel@localhost>
References:  <1094566670.80264.78.camel@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 07 Sep 2004 07:17:51 -0700, James William Pye <flaw@rhid.com> wrote:

> I am curious if anyone knows if this behavior conforms to a
> specification. Personally, I find FreeBSD's behavior "correct", so I
> find the implementation differences disturbing. If it is conforming to a
> specification, I think it would be possible to convince some developers
> to change their implementations, which would be a good thing(tm).

When I've been writing arithmetic evaluation in our /bin/sh, I haven't
found any signs of "standard convsersion" in SUS, so I used strtol()
with a couple of checks, which I assumed to be most logical in this
case.
Perhaps, aardvark for the clarification might be good, yes.

-- 
Regards, Wartan.



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