*Synopsis*: *ksh93* lacks arithmetric function iszero()
CR 6777491 changed on Oct 28 2009 by <User 1-5HNZ8F>
=== Field ============ === New Value ============= === Old Value =============
Commit to Fix in Build snv_128 snv_127
Fixed in Build snv_128
Status 8-Fix Available 7-Fix in Progress
====================== =========================== ===========================
*Change Request ID*: 6777491
*Synopsis*: *ksh93* lacks arithmetric function iszero()
Product: solaris
Category: shell
Subcategory: korn93
Type: RFE
Subtype:
Status: 8-Fix Available
Substatus:
Priority: 3-Medium
Introduced In Release: solaris_nevada
Introduced In Build: snv_72
Responsible Engineer: <User 1-7MTUEB>
Keywords: opensolaris, oss-request, oss-sponsor
=== *Description* ============================================================
Category
shell
Sub-Category
korn
Description
ksh93 lacks arithmetric function "iszero()" which limits the ability to
classify floating-point values or even correctly match against zero (since
IEEE754-1985/2008 floating-point math differs between positive and negaive zero
values).
Frequency
Always
Regression
No
Steps to Reproduce
$ ksh93 -c '(( iszero(0) )) && print "0 is a zero"'
Expected Result
Output to stdout:
-- snip --
0 is a zero
-- snip --
Actual Result
ksh93 exists with:
-- snip --
ksh93: iszero(0) : unknown function
-- snip --
Error Message(s)
ksh93: iszero(0) : unknown function
Test Case
ksh93 -c '(( iszero(0) )) && print "0 is a zero"'
Workaround
Noone known. Plain comparisation against "0" will not catch "-0" and
comparing against both -0 and 0 won't work because the parser (currently)
strips the sign from a zero (likely another bug).
Submitter wants to work on bug
Yes
Additional configuration information
Solaris 11/B84
*** (#1 of 1): 2008-11-27 20:40:38 GMT+00:00 <User 1-F4SZV>
=== *Public Comments* ========================================================
=== *Workaround* =============================================================
=== *Additional Details* =====================================================
Targeted Release: solaris_nevada
Commit To Fix In Build: snv_128
Fixed In Build: snv_128
Integrated In Build:
Verified In Build:
See Also: 6793763
Duplicate of:
Hooks:
Hook1:
Hook2:
Hook3:
Hook4:
Hook5: <email address omitted>
Hook6: <email address omitted>
Program Management:
Root Cause: Inadequate Algorithm
Fix Affects Documentation: No
Fix Affects Localization: No
=== *History* ================================================================
Date Submitted: 2008-11-27 20:40:38 GMT+00:00
Submitted By: <User 1-F4SZV>
Status Changed Date Updated Updated By
3-Accepted 2008-12-01 18:31:44 GMT+00:00 <User 1-5Q-5151>
7-Fix in Progress 2009-10-23 17:31:58 GMT+00:00 <User 1-7MTUEB>
8-Fix Available 2009-10-28 18:23:31 GMT+00:00 <User 1-5HNZ8F>
=== *Service Request* ========================================================
Impact: Significant
Functionality: Secondary
Severity: 3
Product Name: solaris
Product Release: solaris_nevada
Product Build: snv_84
Operating System: solaris_nevada
Hardware: generic
Submitted Date: 2008-11-27 20:40:38 GMT+00:00
=== *Multiple Release (MR) Cluster* - 0 ======================================