trap -p not displaying ignored signal when run from child bash command line

Solution Unverified - Updated -

Issue

  • trap -p not displaying ignored signal when run from child bash command line
  • To reproduce the behaviour, run the following commands:
    $ trap '' SIGINT
    $ exec bash
    $ trap -p
  • The above should show SIGINT as an ignored signal, but it does not. The signal is however ignored.

Environment

  • Red Hat Enterprise Linux 5
  • bash

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content