*Synopsis*: *ksh93* fc -l -e - is mis-parsed, outputs wrong error message "-e - 
requires single argument"

CR 6748645 changed on Dec 22 2008 by <User 1-5Q-5151>

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

Commit to Fix in Build snv_106                                                
Status                 7-Fix in Progress           6-Fix Understood           
====================== =========================== ===========================

     
*Change Request ID*: 6748645

*Synopsis*: *ksh93* fc -l -e - is mis-parsed, outputs wrong error message "-e - 
requires single argument"

  Product: solaris
  Category: shell
  Subcategory: korn93
  Type: Defect
  Subtype: Functionality
  Status: 7-Fix in Progress
  Substatus: 
  Priority: 4-Low
  Introduced In Release: solaris_nevada
  Introduced In Build: snv_72
  Responsible Engineer: <User 1-5Q-5151>
  Keywords: oss-request, oss-sponsor

=== *Description* ============================================================
alias r="fc -e -" is my standard ksh-ism forever; I see there's a better name 
for
the command, "hist", now, but both suffer from the same problem:  the shell 
complains about the number of arguments given; the alias is irrelevant.

that is:

fc -e - vi
fc -s vi

both fail with

ksh93: fc: -e - requires single argument

hist -e - vi
hist -s vi

fail with

ksh93: hist: -e - requires single argument

*** (#1 of 2): 2008-09-16 02:01:02 GMT+00:00 <User 1-5Q-12546>

Seeing that April and Glenn Fowler of AT&T both can't reproduce, I started 
thinking about my environment, and discovered I have an alias for 'hist' 
defined that is
apparently the source of the problem:

alias hist="fc -l -100000"

it doesn't affect the existing /bin/ksh, but it breaks ksh93; I assume because

1) fc is internally translated to 'hist', and then
2) hist is alias-expanded as above

...or something, because if I actually enter "fc -l -1000000 -e - vi", it 
doesn't
do what I expect, but it doesn't give the error message above either....

anyway, the extra alias is unnecessary with ksh93, and seems to be the source
of the problem.

*** (#2 of 2): 2008-09-17 01:45:33 GMT+00:00 <User 1-5Q-12546>


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

=== *Workaround* =============================================================

=== *Additional Details* =====================================================
        Targeted Release: solaris_nevada
        Commit To Fix In Build: snv_106
        Fixed In Build: 
        Integrated In Build: 
        Verified In Build: 
  See Also: 6619428
  Duplicate of: 
  Hooks:
        Hook1: 
        Hook2: 
        Hook3: 
        Hook4: 
        Hook5: <email address omitted>
        Hook6: <email address omitted>
  Program Management: 
  Root Cause: Other - see Research Activity
  Fix Affects Documentation: No
  Fix Affects Localization: No

=== *History* ================================================================
        Date Submitted: 2008-09-16 02:01:01 GMT+00:00
        Submitted By: <User 1-5Q-12546>

        Status Changed    Date Updated                  Updated By
        3-Accepted        2008-09-16 23:24:40 GMT+00:00 <User 1-5Q-5151>
        5-Cause Known     2008-09-17 21:37:16 GMT+00:00 <User 1-5Q-5151>
        6-Fix Understood  2008-11-24 23:29:46 GMT+00:00 <User 1-5Q-5151>
        7-Fix in Progress 2008-12-22 08:06:27 GMT+00:00 <User 1-5Q-5151>


=== *Service Request* ========================================================
        Impact: Significant
        Functionality: Primary
        Severity: 2
        Product Name: solaris
        Product Release: solaris_nevada
        Product Build: 
        Operating System: snv_92
        Hardware: generic
        Submitted Date: 2008-09-16 02:01:02 GMT+00:00


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


Reply via email to