Skip to content

[BUG] Wrong signal handling in subshells #206

Description

@itislu

It looks like the main signal handler is still the main process, not the subshell process.

SIGQUIT in this example should quit the entire subshell, not just cat:

(cat || echo 123)

We still print 123 in this example.

This issue also causes (cat) | (cat) to print too many newlines when Ctrl+C.

This also makes it apparent: (cat || echo 1 && exit 2) || echo $?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions