Ksh sends a signal to itself if exit status is larger than 256 (256 + signal value)
Issue
- On RHEL7 if a shell script calls
exit
with a value of256 + {1..__SIGRTMAX}
ksh would kill itself withexit_value - 256
. - On RHEL8 this behaviour no longer exist.
Environment
- Red Hat Enterprise Linux (RHEL) 7
- Red Hat Enterprise Linux (RHEL) 8
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.