# Exit code 1 on the line below but no exception thanks to this finished_ok(). if $(test -f /) echo("/ is a file") # Outputs nothing, / is a directory