結果 : bash capture output from function