Bug 869671

Summary: ksh crashes when executed in from removed directory
Product: Red Hat Enterprise Linux 7 Reporter: Michal Hlavinka <mhlavink>
Component: kshAssignee: Michal Hlavinka <mhlavink>
Status: CLOSED CURRENTRELEASE QA Contact: Jan Kepler <jkejda>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: jkejda, mkyral
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ksh-20120801-4.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-13 10:53:12 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:
Attachments:
Description Flags
patch to fix this none

Description Michal Hlavinka 2012-10-24 14:22:17 UTC
Created attachment 632816 [details]
patch to fix this

Description of problem:
#!/bin/bash

testit()
{
mkdir testdir
cd testdir
ksh -c 'sleep 1; FOO=$(/bin/echo $(/bin/echo "bar") ); echo success' &
cd ..
rmdir testdir
wait
}

if [ "$(testit)" = 'success' ]; then 
echo "works"
else
echo "BUG present";
fi


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

Comment 3 Ludek Smid 2014-06-13 10:53:12 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.