News for hackers. Stuff that matters.
Re:Filenames and Pathnames in Shell: How to Do It Correctly by chungy on Monday June 19, 2023 @09:52PM (#36398785)
Given that it makes a script terminate for any unhandled errors, I don't think your goal contradicts with setting -e. Rather, it makes the script author explicitly handle errors or the script dies.
Re:Filenames and Pathnames in Shell: How to Do It Correctly by fbdab103 on Tuesday June 20, 2023 @12:29AM (#36399721)
Handle errors in bash? More power to you, but if my script cannot just fail in place, then it will be written in Python. Even with shellcheck, I do not trust myself to write more than a handful of lines in bash.
Re:Filenames and Pathnames in Shell: How to Do It Correctly by chungy on Tuesday June 20, 2023 @01:45PM (#36407668)
> Handle errors in bash?

The || operator does that pretty well.