結果 : bash trap error in function