shell 系统变量IFS

今天看到一个shell函数,开始不理解,后来才明白shell function in_path(){     cmd=$1;     path=$2;     oldIFS=$IFS     IFS=":"     retval=1     for directory in $path     do      if [ -x $directory/$cmd ];then      retur
相关文章
相关标签/搜索