結果 : bash increment global variable in function