运维网's Archiver
论坛
›
Shell/Powershell
› 一本shell编程书籍上的有bug的shell程序,看谁能找出问题所在。
wxsheng
发表于 2018-8-22 07:54:21
一本shell编程书籍上的有bug的shell程序,看谁能找出问题所在。
if [ $# -eq 1] ; then
directory="."
elif [ -d $2 ] ;
then
directory="$2"
else
echo "Optional second argument must be a directory." 1>&2
echo "Usage:lnks file " 1>&2
exit
fi
页:
[1]
查看完整版本:
一本shell编程书籍上的有bug的shell程序,看谁能找出问题所在。