原帖由 haoxueyu 于 2008-8-18 18:38 发表
type="df";
type2="dsfd";
["$type"="$type2"]
echo $?
写了个简单shell,在学习阶段
执行sh test.sh出现
AIX:/home/ap/ipss> sh test.sh
test.sh[3]: [df=dsfd]: 找不到。
什么原因呢?
欢迎光临 Chinaunix (http://bbs.chinaunix.net/) | Powered by Discuz! X3.2 |