*Synopsis*: *ksh93* lacks arithmetric function iszero() CR 6777491 changed on Aug 3 2009 by <User 1-1SURPB>
=== Field ============ === New Value ============= === Old Value ============= Type RFE Defect ====================== =========================== =========================== *Change Request ID*: 6777491 *Synopsis*: *ksh93* lacks arithmetric function iszero() Product: solaris Category: shell Subcategory: korn93 Type: RFE Subtype: Status: 3-Accepted Substatus: Priority: 3-Medium Introduced In Release: solaris_nevada Introduced In Build: snv_72 Responsible Engineer: Keywords: opensolaris === *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: Commit To Fix In Build: Fixed In Build: Integrated In Build: Verified In Build: See Also: Duplicate of: Hooks: Hook1: Hook2: Hook3: Hook4: Hook5: <email address omitted> Hook6: <email address omitted> Program Management: Root Cause: 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> === *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 ======================================