*Synopsis*: *ksh93* unset of a variable which is not set should return 0 CR 6791838 changed on Nov 23 2009 by <User 1-2S67RN>
=== Field ============ === New Value ============= === Old Value ============= Integrated in Build snv_128 Status 10-Fix Delivered 8-Fix Available ====================== =========================== =========================== *Change Request ID*: 6791838 *Synopsis*: *ksh93* unset of a variable which is not set should return 0 Product: solaris Category: shell Subcategory: korn93 Type: Defect Subtype: Functionality Status: 10-Fix Delivered Substatus: Priority: 3-Medium Introduced In Release: solaris_nevada Introduced In Build: snv_72 Responsible Engineer: <User 1-7MTUEB> Keywords: ONPIT_OSOL_TRANSITION, oss-request, oss-sponsor === *Description* ============================================================ In ksh93, the special builtin "unset" will exit 1 when its argument is a variable which is not set, but it should exit 0, according to the POSIX standards. The problem occurs with the ksh93 integrated into snv_72, as well as the latest ksh93 (based on AT&T's ast-ksh 2008-11-04) integrated into snv_106. In ksh93: % unset foo % echo $? 1 This behavior caused problems in Makefile scripts when ksh93 is used. See CR 6791110 - perl doesn't build when VERSION is not set *** (#1 of 1): 2009-01-09 01:58:02 GMT+00:00 <User 1-5Q-5151> === *Public Comments* ======================================================== === *Workaround* ============================================================= === *Additional Details* ===================================================== Targeted Release: solaris_nevada Commit To Fix In Build: snv_128 Fixed In Build: snv_128 Integrated In Build: snv_128 Verified In Build: See Also: 6437624, 6791110, 6791841, 6793763, 6897170 Duplicate of: Hooks: Hook1: Hook2: Hook3: Hook4: Hook5: <email address omitted> Hook6: <email address omitted> Program Management: Root Cause: Inadequate Requirements Fix Affects Documentation: No Fix Affects Localization: No === *History* ================================================================ Date Submitted: 2009-01-09 01:58:01 GMT+00:00 Submitted By: <User 1-5Q-5151> Status Changed Date Updated Updated By 5-Cause Known 2009-01-09 02:00:01 GMT+00:00 <User 1-5Q-5151> 6-Fix Understood 2009-06-16 15:14:26 GMT+00:00 <User 1-1SURPB> 7-Fix in Progress 2009-10-23 21:20:17 GMT+00:00 <User 1-7MTUEB> 8-Fix Available 2009-10-28 18:23:32 GMT+00:00 <User 1-5HNZ8F> 10-Fix Delivered 2009-11-23 05:16:52 GMT+00:00 <User 1-2S67RN> === *Service Request* ======================================================== Impact: Significant Functionality: Secondary Severity: 3 Product Name: solaris Product Release: solaris_nevada Product Build: Operating System: solaris_nevada Hardware: generic Submitted Date: 2009-01-09 01:58:02 GMT+00:00 === *Service Request* ======================================================== Impact: Significant Functionality: Primary Severity: 2 Product Name: step Product Release: 3.0 Product Build: 3.0 Operating System: all Hardware: generic Submitted Date: 2009-11-02 13:10:43 GMT+00:00 === *Multiple Release (MR) Cluster* - 0 ======================================