Bug 647524 - completion after an environment variable results in a "bad substitution" error
Summary: completion after an environment variable results in a "bad substitution" error
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: ksh
Version: 5.5
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Michal Hlavinka
QA Contact: qe-baseos-tools-bugs
URL:
Whiteboard:
Depends On:
Blocks: 702015
TreeView+ depends on / blocked
 
Reported: 2010-10-28 16:52 UTC by Jeff Bastian
Modified: 2018-11-14 16:43 UTC (History)
3 users (show)

Fixed In Version: ksh-20100621-1.el5
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 702015 (view as bug list)
Environment:
Last Closed: 2012-02-21 05:50:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
filename completion patch (525 bytes, patch)
2010-10-28 16:52 UTC, Jeff Bastian
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0159 0 normal SHIPPED_LIVE ksh bug fix and enhancement update 2012-02-20 14:53:47 UTC

Description Jeff Bastian 2010-10-28 16:52:16 UTC
Created attachment 456294 [details]
filename completion patch

Description of problem:
Filename completion with M-= (or ESC =) after an environment variable fails with a "bad substitution" error:
   $ ksh
   $ set -o emacs
   $ grep $i ESC =
   ksh: ${!i @}: bad substitution

It does not matter if $i is set or not.
   $ ksh
   $ set -o emacs
   $ export i=1
   $ grep $i ESC =
   ksh: ${!i @}: bad substitution

An upstream patch from Siddhesh Poyarekar fixes this bug.
   https://mailman.research.att.com/pipermail/ast-developers/2010q4/000795.html
   https://mailman.research.att.com/pipermail/ast-developers/2010q4/000796.html

Version-Release number of selected component (if applicable):
ksh-20100202-1.el5_5.1

How reproducible:
every time

Steps to Reproduce:
1. ksh
2. set -o emacs
3. grep $i ESC =
  
Actual results:
ksh: ${!i @}: bad substitution

Expected results:
list of filenames

Additional info:

Comment 2 Michal Hlavinka 2010-10-29 06:57:57 UTC
thanks, reproducible

Comment 3 RHEL Program Management 2011-01-11 21:09:22 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated in the
current release, Red Hat is unfortunately unable to address this
request at this time. Red Hat invites you to ask your support
representative to propose this request, if appropriate and relevant,
in the next release of Red Hat Enterprise Linux.

Comment 4 RHEL Program Management 2011-01-11 22:45:08 UTC
This request was erroneously denied for the current release of
Red Hat Enterprise Linux.  The error has been fixed and this
request has been re-proposed for the current release.

Comment 5 RHEL Program Management 2011-05-31 13:44:52 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated in the
current release, Red Hat is unfortunately unable to address this
request at this time. Red Hat invites you to ask your support
representative to propose this request, if appropriate and relevant,
in the next release of Red Hat Enterprise Linux.

Comment 8 errata-xmlrpc 2012-02-21 05:50:21 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2012-0159.html


Note You need to log in before you can comment on or make changes to this bug.