Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Feb 22, 2025
Merged

Conversation

magicant
Copy link
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
48 tasks
@magicant magicant merged commit 08ff38d into trunk Feb 22, 2025
3 checks passed
@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