*Synopsis*: *ksh93* unset of a variable which is not set should return 0
CR 6791838 changed on Oct 23 2009 by <User 1-7MTUEB>
=== Field ============ === New Value ============= === Old Value =============
Status 7-Fix in Progress 6-Fix Understood
====================== =========================== ===========================
*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: 7-Fix in Progress
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_127
Fixed In Build:
Integrated In Build:
Verified In Build:
See Also: 6437624, 6791110, 6791841, 6793763
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>
=== *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
=== *Multiple Release (MR) Cluster* - 0 ======================================