Skip to content

wait: Don't return when the target process is suspended#121

Merged
magicant merged 1 commit into
trunkfrom
wait
Feb 22, 2025
Merged

wait: Don't return when the target process is suspended#121
magicant merged 1 commit into
trunkfrom
wait

Conversation

@magicant

Copy link
Copy Markdown
Owner

The wait built-in no longer returns when the target process is suspended if job-control is on. The built-in now waits for the target process to exit or be terminated by a signal regardless of mode. This behavior is required by POSIX.1-2024.

Maybe we could have a new option to make the built-in work as before, but I'd like to see if other shells introduce such an option first.

The `wait` built-in no longer returns when the target process is
suspended if job-control is on. The built-in now waits for the target
process to exit or be terminated by a signal regardless of mode.
This behavior is required by POSIX.1-2024.

Maybe we could have a new option to make the built-in work as before,
but I'd like to see if other shells introduce such an option first.
@magicant magicant added this to the 2.59 milestone Feb 21, 2025
@magicant magicant self-assigned this Feb 21, 2025
@magicant magicant mentioned this pull request Feb 22, 2025
56 tasks
@magicant
magicant merged commit 08ff38d into trunk Feb 22, 2025
@magicant
magicant deleted the wait branch February 22, 2025 03:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant