linux – 为for循环设置IFS然后在for循环中取消设置是否安全?

考虑我打算在任何符合 POSIX.1-2004的shell上运行的以下shell脚本. log(){ echo debug: $*}A=foo:bar:bazIFS=:for i in $Ado log token $idoneunset IFS# Do more stuff here 我想循环冒号分隔值.在循环中,我想调用一个日志函

返回顶部