You can do:

local var; var=$(...); ... $?

No need to make the declaration and assignment at the same time.

Reply via email to