日期:2014-05-16 浏览次数:20727 次
keegoo [ ~ ] :$ cat tmp.sh #!/bin/sh echo `type -p svn`
keegoo [ ~ ] :$ ./tmp.sh -p: not found svn is /usr/bin/svn
keegoo [ ~ ] :$ . tmp.sh /usr/bin/svn
keegoo [ ~ ] :$ sh -x tmp.sh + type -p svn + echo -p: not found svn is /usr/bin/svn -p: not found svn is /usr/bin/svn