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

Tool should not eagerly read input stream in all cases #10

Open
HeavyWombat opened this issue Oct 14, 2022 · 0 comments
Open

Tool should not eagerly read input stream in all cases #10

HeavyWombat opened this issue Oct 14, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@HeavyWombat
Copy link
Member

When retry is used in a setup where an outside routine relies on input stream processing, retry should not consume the standard input stream, because this breaks the whole flow:

#!/bin/bash

while IFS= read -r ENTRY; do
  echo "$ENTRY"
  retry true
done <<<"$(echo -e "one\ntwo\nthree")"
@HeavyWombat HeavyWombat added the bug Something isn't working label Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant