standards/52972: /bin/sh arithmetic not POSIX compliant

Wartan Hachaturow wart at tepkom.ru
Tue Jun 24 02:50:19 PDT 2003


The following reply was made to PR standards/52972; it has been noted by GNATS.

From: Wartan Hachaturow <wart at tepkom.ru>
To: Dag-Erling Sm?rgrav <des at des.no>
Cc: freebsd-gnats-submit at freebsd.org, schweikh at schweikhardt.net
Subject: Re: standards/52972: /bin/sh arithmetic not POSIX compliant
Date: Tue, 24 Jun 2003 13:46:24 +0400

 On Mon, Jun 23, 2003 at 11:30:14AM -0700, Dag-Erling Sm?rgrav wrote:
 
 >  He's wrong.  The full text of section 2.6.4 is:
 
 Now, he has clarified himself, and pointed me to rationale.
 This is the relevant part of rationale for 2.6.4:
 
 "The syntax and semantics for arithmetic were changed for the ISO/IEC
 9945-2:1993 standard. The language is essentially a pure arithmetic
 evaluator of constants and operators (excluding assignment) and
 represents a simple subset of the previous arithmetic language (which
 was derived from the KornShell "(())" construct)."
 ..
 "The portion of the ISO C standard arithmetic operations selected
 corresponds to the operations historically supported in the KornShell."
 
 In other words, rationale says that only constants and operators are the
 language of arithmetic evaluation, and assignment shouldn't be
 supported.
 
 Jens, perhaps, you may clarify further, what particular test you've run,
 post snippets of the code in question? If the tests are valid and
 verified OpenGroup ones, we may have to ask them for clarification,
 or issue a defect report..
 
 -- 
 Regards, Wartan.


More information about the freebsd-standards mailing list