Things to know: Bash

Error handling with command substitution

To accomplish error handling with command substitution you must not use the local key word.

this works

this does not

Leave a Reply

Your email address will not be published.