zopencommunity / zopencommunity/bashport
trap.tests loops through sigspec in a different order than expected
Open
@sachintu47 is already working on this.
Since Jul 11, 2025.
bug
help wanted
- Dominant language
- Groovy
- Stars
- 12
- Forks
- 7
- PR merge metrics
- No merged PRs in 30d
Description
On z/OS:
trap 'echo aborting' HUP INT QUIT ABRT TERM
trap
prints out:
trap -- 'echo exiting' EXIT
trap -- 'echo aborting' SIGHUP
trap -- 'echo aborting' SIGINT
trap -- 'echo aborting' SIGABRT
trap -- 'echo aborting' SIGTERM
trap -- 'echo aborting' SIGQUIT
trap -- '' 27
On the Mac with bash (and in expected results):
trap -- 'echo aborting' SIGHUP
trap -- 'echo aborting' SIGINT
trap -- 'echo aborting' SIGQUIT
trap -- 'echo aborting' SIGABRT
trap -- 'echo aborting' SIGTERM
This is probably because the output is ordered by number and SIGQUIT is 24 on z/OS but 3 on the Mac.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.