結果 : bash update global variable in loop