interp: Make it clearer that commands won't exit/fail unless for the last command? #649
andreynering
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
You're right that the logic is to follow how a real shell works. We can't change the default behavior without breaking users, as you can imagine. I agree that the default is perhaps a bit surprising from the point of view of Go, since in general Go APIs that return an error also stop at the first error they encounter. I lean towards documenting this better, because using |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is a feedback from the Task project (you may be tired of hearing of this project already 🙂).
We're now running
set -e
automatically to avoid surprises: go-task/task@ac8e344.I think you should consider:
set -e
is considered by default, and maybe the main examples in the README and doc should use that.I know you mimicked how running real shell files work, but it can still be forgotten and confusing when debugging stuff.
Beta Was this translation helpful? Give feedback.
All reactions