Bug 1133585

Summary: broken command substitution while stdout closed
Product: Red Hat Enterprise Linux 7 Reporter: Filip Krska <fkrska>
Component: kshAssignee: Michal Hlavinka <mhlavink>
Status: CLOSED ERRATA QA Contact: Martin Frodl <mfrodl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: kdudka, mfrodl, mhlavink, ovasik, qe-baseos-apps
Target Milestone: rcKeywords: Reproducer
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ksh-20120801-21.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1133582 Environment:
Last Closed: 2015-03-05 13:42:02 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Filip Krska 2014-08-25 13:52:50 UTC
ksh-20120801-19.el7.x86_64 reproduces the issue as well


+++ This bug was initially created as a clone of Bug #1133582 +++

Description of problem:

The behavior regarding command substitution while stdout closed has changed between ksh-20120801 and ksh-20100621

Version-Release number of selected component (if applicable):

ksh-20120801-10.el6_5.8.x86_64

How reproducible:

Always

Steps to Reproduce:
1.
# ksh -c 'a=`cd;pwd`;echo $a>/tmp/a' >&-;cat /tmp/a

2.
3.

Actual results:

no output

Expected results:

/root

Additional info:

Comment 6 errata-xmlrpc 2015-03-05 13:42:02 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.

https://rhn.redhat.com/errata/RHBA-2015-0300.html