Bug 1377496

Summary: command "cat < <(cat)" doesn't end with EOF, CTRL+C terminates the whole shell
Product: Red Hat Enterprise Linux 7 Reporter: Pavel Raiskup <praiskup>
Component: bashAssignee: Siteshwar Vashisht <svashisht>
Status: CLOSED ERRATA QA Contact: Martin Kyral <mkyral>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2CC: isenfeld, jkejda, mkyral
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: bash-4.2.46-26.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-01 20:32:05 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:
Attachments:
Description Flags
bash44-shellpgrp.patch none

Comment 2 Siteshwar Vashisht 2017-01-20 14:15:51 UTC
This has been fixed in bash-4.4 and works as expected in rawhide.

Comment 3 Pavel Raiskup 2017-01-20 14:43:48 UTC
Sorry for the wrong reproducer, because it is not obvious what I tried to
say.  So just FTR:

Please don't use the '$ bash -c CMD' command, but rather real interactive
session by '$ bash'.  Then hit the 'CMD' into the started interactive shell,
and try to 'ctrl^C' it.  You'll see the shell is also interrupted.

Comment 4 Siteshwar Vashisht 2017-01-24 05:02:42 UTC
Created attachment 1243822 [details]
bash44-shellpgrp.patch

Don't unconditionally set pipeline_pgrp to shell_pgrp

Comment 9 errata-xmlrpc 2017-08-01 20:32:05 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://access.redhat.com/errata/RHSA-2017:1931