Is there a TRY CATCH command in Bash
Below is an example of a script which implements try/catch/finally in bash. Like other answers to this question, exceptions must be caught after exiting a subprocess. The example scripts start by creating an anonymous fifo, which is used to pass string messages from a command exception or throw to end of the closest try block.…
