| 发表于:2007-08-31 15:09:32 楼主 |
#!/bin/bash echo "the bash name and parameter are:" echo " $0 $1 " echo " press y ,or press n " if [ "$1"="y" ] then echo ": yes,i'm sure you input y" elif [ "$1"="n" ] then echo ":your input are n" else echo "none"; fi ~ 死活只执行 echo ": yes,i'm sure you input y"这句! 这个shell的语法太诡异了。 |
|
|
|
|