-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
launching retry
into the background disrupts bash
's while read -r
#20
Comments
With
The script runs es expected.
|
chatgpt had an why this is happening and a workaround:
And indeed. Command:
was functional. Is there something you could do to fix this in |
This behaviour is by design:
Passing /dev/null to stdin is a useful way to stop retry reading stdin when you don't want it to. It is possible to add a switch to turn off the stdin/stdout pump where needed. |
@adrelanos Thanks for offering a workaround. @minfrin It would be nice if retry could have a switch that could ignore its stdin processing behaviour. |
test script:
chmod +x ./test
actual output:
The loop runs actually only 1 time instead of the expected 3 times.
The text was updated successfully, but these errors were encountered: