Eduardo Bustamante Mon, 22 Aug 2016 20:39:20 -0700
You can do: local var; var=$(...); ... $?
No need to make the declaration and assignment at the same time.