結果 : bash update global variable in while loop