rustshellscript
Joined 7 years ago
Karma
115
Submissions
19
Member since
Sep 27
https://github.com/rust-shell-script/rust_cmd_lib
View on Hacker NewsJoined 7 years ago
Maybe it is time to consider using rust instead: https://github.com/rust-shell-script/rust_cmd_lib ?
[1] https://github.com/anordal/shellharden/blob/master/how_to_do...
The “xxx || true” is for ignoring error within a group of commands, which is also very common in sh “set -e” mode. Without it, the group of commands need to be divided into at least 3 parts to still capture all possible command errors. I probably need to document this part with more details.
As you can see, it is very verbose and that's why I choose to hide the lower APIs at this moment.