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
burnto
changed the title
forge script crash: "failed printing to stdout: Broken pipe (os error 32)"
forge script crash when piping to command that doesn't take stdin: "failed printing to stdout: Broken pipe (os error 32)"
Feb 8, 2024
zerosnacks
changed the title
forge script crash when piping to command that doesn't take stdin: "failed printing to stdout: Broken pipe (os error 32)"
bug: forge script crash when piping to command that doesn't take stdin: "failed printing to stdout: Broken pipe (os error 32)"
Jul 11, 2024
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (a5efe4f 2024-02-08T00:16:00.244105000Z)
What command(s) is the bug in?
forge script
Operating System
macOS (Apple Silicon)
Describe the bug
In some cases, stdout pipe results in a panic when the process doesn't take stdin.
For example, here's my basic script:
It runs fine directly, but when I attempt to pipe stdout to
echo
(which does not read stdin; I thought it did, but was incorrect), it crashes.And here's the output:
Thanks!
The text was updated successfully, but these errors were encountered: