You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This happens because gum input also reads from stdin to set the value. In this case it's reading the part of the content of script.sh. Try run the script without setting the value of gum input.
To Reproduce
Steps to reproduce the behavior:
put the following into
script.sh
:then run
cat script.sh | bash
and see that only the first prompt runs.(if you just run
./script.sh
the script behaves as expected.)Expected behavior
Both prompts should run, and the script should behave the same way when piped as when executed directly.
Similarly:
Desktop (please complete the following information):
Additional context
The script will work if you wrap it in additional control flow:
Relevant discord thread
The text was updated successfully, but these errors were encountered: