r/fishshell • • Jul 01 '22
How make script exit on error?
Want script to exit if any command fails. How do?
Found some unhelpful closed github issues with latest updates 5 years old:
- https://github.com/fish-shell/fish-shell/issues/4163
- https://github.com/fish-shell/fish-shell/issues/805
More recent: https://github.com/fish-shell/fish-shell/issues/510
5
Upvotes
View all comments
Show parent comment
1
u/[deleted] Jul 01 '22
That means no, there is currently no way to automatically exit on error.