Date: Tue, 24 Jun 2003 02:50:17 -0700 (PDT) From: Wartan Hachaturow <wart@tepkom.ru> To: freebsd-standards@FreeBSD.org Subject: Re: standards/52972: /bin/sh arithmetic not POSIX compliant Message-ID: <200306240950.h5O9oHxe021598@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR standards/52972; it has been noted by GNATS. From: Wartan Hachaturow <wart@tepkom.ru> To: Dag-Erling Sm?rgrav <des@des.no> Cc: freebsd-gnats-submit@freebsd.org, schweikh@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200306240950.h5O9oHxe021598>