/bin/test asdf -ge 0

Wartan Hachaturow wartan.hachaturow at gmail.com
Wed Sep 8 23:31:40 PDT 2004


On Tue, 07 Sep 2004 07:17:51 -0700, James William Pye <flaw at 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.


More information about the freebsd-standards mailing list