*Synopsis*: ksh93 mishandles GNU ld genscripts.sh script

CR 6988358 changed on Sep 29 2010 by <User 1-5Q-1267>

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

Public Comments        New Note                                               
Status                 3-Accepted                  1-Dispatched               
====================== =========================== ===========================

     
*Change Request ID*: 6988358

*Synopsis*: ksh93 mishandles GNU ld genscripts.sh script

  Product: solaris
  Category: shell
  Subcategory: korn93
  Type: Defect
  Subtype: 
  Status: 3-Accepted
  Substatus: 
  Priority: 2-High
  Introduced In Release: 
  Introduced In Build: 
  Responsible Engineer: 
  Keywords: gnu-ld, opensolaris

=== *Description* ============================================================
Category
     shell
Sub-Category
     korn93
Description
     When trying to build GNU ld from the GNU binutils CVS repository on 
a self-built
snv_147, the ld/genscripts.sh failed, which doesn't happen with the 
former
/bin/sh (i.e. /usr/has/bin/sh).
Frequency
     Always
Regression
     solaris_10
Steps to Reproduce
     Consider the following script:
% cat genscripts.sh
#!/bin/sh
TMP=tmp
(
   . source.sh
) | cat > out
rm -f ${TMP}
% cat source.sh
eval "cat > $TMP" <<EOF
EOF
sed -e '1d' $TMP
sed -e '2d' $TMP
% chmod +x genscripts.sh
% ./genscripts.sh
% sed: can't read tmp: No such file or directory
Expected Result
     The scripts runs without errors, as it does with both 
/usr/has/bin/sh and bash.
Actual Result
     The script errors out as above, obviously removing ${TMP} too early
Unfortunately, the error vanishes if running genscripts.sh with sh -x, 
unlike
the full genscripts.sh from
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/genscripts.sh?rev=1.31&content-type=text/x-cvsweb-markup&cvsroot=src
where the early removal can clearly be seen when running with sh -x.
Error Message(s)
Test Case
Workaround
Additional configuration information

*** (#1 of 1): 2010-09-29 18:12:28 GMT+00:00 <User 1-9HOB9N>


=== *Public Comments* ========================================================
David Korn responded on <email address omitted>:

From: David Korn <<email address omitted>>
Date: Wed, 29 Sep 2010 19:28:03 -0400
Subject: Re: [ksh93-integration-discuss] CR 6988358 Updated,  P2 shell/korn93 
ksh93 mishandles GNU ld genscripts.sh script
--------


> *Synopsis*: ksh93 mishandles GNU ld genscripts.sh script
> 
> CR 6988358 changed on Sep 29 2010 by <User 1-5Q-1267>
> 

Thanks, I have fixed this for the next update.

David Korn
<email address omitted>

*** (#1 of 1): 2010-09-29 23:33:06 GMT+00:00 <User 1-5Q-1267>


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

=== *History* ================================================================
        Date Submitted: 2010-09-29 18:12:27 GMT+00:00
        Submitted By: <User 1-9HOB9N>

        Status Changed    Date Updated                  Updated By
        3-Accepted        2010-09-29 23:33:06 GMT+00:00 <User 1-5Q-1267>


=== *Service Request* ========================================================
        Impact: Significant
        Functionality: Primary
        Severity: 2
        Product Name: solaris
        Product Release: solaris_nevada
        Product Build: snv_147
        Operating System: solaris_nevada
        Hardware: generic
        Submitted Date: 2010-09-29 18:12:28 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