*Synopsis*: *sh* migrate /bin/sh to ksh93
CR 6486407 changed on Jan 7 2010 by <User 1-5Q-1267>
=== Field ============ === New Value ============= === Old Value =============
See Also 6246902
====================== =========================== ===========================
*Change Request ID*: 6486407
*Synopsis*: *sh* migrate /bin/sh to ksh93
Product: solaris
Category: shell
Subcategory: bourne
Type: RFE
Subtype:
Status: 3-Accepted
Substatus:
Priority: 4-Low
Introduced In Release:
Introduced In Build:
Responsible Engineer:
Keywords: on_ips, opensolaris
=== *Description* ============================================================
Category
shell
Sub-Category
bourne
Description
Based on the earlier discussion about the migration of /bin/ksh I'm
proposing to migrate /bin/sh to ksh93 before /bin/ksh. It may prove to be a
simpler work with fewer political obstacles because the feature set of the
Bourne shell is smaller than the set of features found in ksh88.
Benefits:
* ksh93 as /bin/sh would provide a POSIX compatible shell
* Greater interoperability with other operating systems, including Linux
* Greater flexibility in script development
* Reduced maintenance requirements (only one code base instead of two needs to
be maintained)
* The project would prepare the path for the larger /bin/ksh migration project
The Bourne shell is lacking POSIX conformance and common extensions available
on other operating systems makes it a challenge to port even simple
applications to Solaris.
This is multiplied by the problem that /bin/sh is the default shell for system
calls such as popen(3c) and system(3c) or utilities like make(1) which cannot
be changed to another shell based on a system wide tunable or other "easy"
solutions to work around the limitations of the Bourne shell.
ksh93 is open source and will be readily available in Solaris as /usr/bin/ksh93
soon, allowing community members to contribute fixes, resulting in a better
quality default shell for Solaris.
In addition to many new features, a couple problems already described in the
Sun bug database are fixed in ksh93, including:
* Bug ID: 4088172 *sh* request to have /usr/bin/sh be a POSIX shell
* Bug ID: 6378708 *sh* could implement non-conflicting posix syntax
* Bug ID: 6398988 /bin/sh should support $(), just like POSIX
Regards,
Knut
Frequency
Always
Regression
No
Steps to Reproduce
see description
Expected Result
see description
Actual Result
see description
Error Message(s)
none
Test Case
see description
Workaround
none
Submitter wants to work on bug
No
Additional configuration information
see description
*** (#1 of 2): 2006-10-25 23:25:37 GMT+00:00 <User 1-3BUFAZ>
The previous description of this bug described reasons why to migrate
/bin/sh to ksh93 before /bin/ksh is migrated. This RFE has been changed to
one which requests the migration of /bin/sh to ksh93 without reference to
its priority relative to other ksh93 work.
*** (#2 of 2): 2007-02-13 21:57:02 GMT+00:00 <User 1-5Q-5151>
=== *Public Comments* ========================================================
=== *Workaround* =============================================================
=== *Additional Details* =====================================================
Targeted Release:
Commit To Fix In Build:
Fixed In Build:
Integrated In Build:
Verified In Build:
See Also: 6246902, 4088172, 6504720, 6570519
Duplicate of:
Hooks:
Hook1:
Hook2:
Hook3:
Hook4:
Hook5:
Hook6: <email address omitted>
Program Management:
Root Cause:
Fix Affects Documentation: No
Fix Affects Localization: No
=== *History* ================================================================
Date Submitted: 2006-10-25 23:25:36 GMT+00:00
Submitted By: <User 1-3BUFAZ>
Status Changed Date Updated Updated By
11-Closed 2006-10-30 18:23:38 GMT+00:00 <User 1-5Q-5151>
3-Accepted 2007-02-13 21:57:01 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_01
Operating System: solaris_nevada
Hardware: generic
Submitted Date: 2006-10-25 23:25:37 GMT+00:00
=== *Service Request* ========================================================
Impact: Significant
Functionality: Primary
Severity: 2
Product Name: solaris
Product Release: solaris_nevada
Product Build: snv_01
Operating System: solaris_nevada
Hardware: generic
Submitted Date: 2006-12-14 17:47:22 GMT+00:00
=== *Service Request* ========================================================
Impact: Limited
Functionality: Secondary
Severity: 4
Product Name: solaris
Product Release: solaris_nevada
Product Build: snv_50
Operating System: solaris_nevada
Hardware: generic
Submitted Date: 2006-12-18 10:06:41 GMT+00:00
=== *Service Request* ========================================================
Impact: Limited
Functionality: Nonessential
Severity: 5
Product Name: solaris
Product Release: solaris_nevada
Product Build: snv_01
Operating System: solaris_nevada
Hardware: generic
Submitted Date: 2007-06-18 06:34:52 GMT+00:00
=== *Multiple Release (MR) Cluster* - 0 ======================================