Description of problem:
If we trap the EXIT signal to write logout for example, mksh will logout on any CtlC interruption.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
2. trap "echo 'logout'" 0
Just interrupt the command if running
Fixed in RHEL8
Red Hat Enterprise Linux version 7 entered the Maintenance Support Phase. In this phase only qualified Critical and Important Security errata advisories (RHSAs) and Urgent Priority Bug Fix errata advisories (RHBAs) may be released as they become available. Other errata advisories may be delivered as appropriate.
This bug has been reviewed by Engineering representative and does not meet the inclusion criteria for Maintenance Support 2 Phase.
For more information about Red Hat Enterprise Linux Lifecycle, please see https://access.redhat.com/support/policy/updates/errata/
This issue is fixed in Red Hat Enterprise Linux version 8, closing as NEXTRELEASE