zopencommunity / zopencommunity/bashport

trap.tests loops through sigspec in a different order than expected

Open
#11 5 comments 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.