*Synopsis*: OPTARG and OPTIND not set properly after getopts()

CR 6986896 changed on Oct 11 2010 by <User 1-5Q-8426>

=== Field ============ === New Value ============= === Old Value =============

Status                 11-Closed                   3-Accepted                 
SubStatus              Not a Defect                                           
Work Around            New Note                                               
====================== =========================== ===========================

     
*Change Request ID*: 6986896

*Synopsis*: OPTARG and OPTIND not set properly after getopts()

  Product: solaris
  Category: shell
  Subcategory: korn93
  Type: Defect
  Subtype: 
  Status: 11-Closed
  Substatus: Not a Defect
  Priority: 1-Very High
  Introduced In Release: 
  Introduced In Build: 
  Responsible Engineer: 
  Keywords: 

=== *Description* ============================================================
vucmm resources are not coming online.

*** (#1 of 1): 2010-09-23 02:11:04 GMT+00:00 <User 1-5Q-5542>


=== *Public Comments* ========================================================

=== *Workaround* =============================================================
The generic workaround is to use the "function name" method of declaring 
functions as opposed to the "name()" way.  This will bring back the original 
ksh behaviour.

Another workaround, specifically for this issue, would be reset OPTIND to 1 in 
the functions where getopts is used before getopts is invoked.

*** (#1 of 1): 2010-10-11 07:54:15 GMT+00:00 <User 1-5Q-8426>


=== *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: 
        Hook6: 
  Program Management: 
  Root Cause: 
  Fix Affects Documentation: No
  Fix Affects Localization: No

=== *History* ================================================================
        Date Submitted: 2010-09-23 02:11:03 GMT+00:00
        Submitted By: <User 1-5Q-5542>

        Status Changed    Date Updated                  Updated By
        3-Accepted        2010-10-04 15:35:33 GMT+00:00 <User 1-5Q-8426>
        11-Closed         2010-10-11 07:54:14 GMT+00:00 <User 1-5Q-8426>


=== *Service Request* ========================================================
        Impact: Significant
        Functionality: Primary
        Severity: 2
        Product Name: suncluster
        Product Release: scnext
        Product Build: scnext_01
        Operating System: snv_147
        Hardware: generic
        Submitted Date: 2010-09-23 02:11:04 GMT+00:00


=== *Multiple Release (MR) Cluster* - 0 ======================================

_______________________________________________
ksh93-integration-discuss mailing list
ksh93-integration-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/ksh93-integration-discuss

Reply via email to