1.定义变量时, =号的两边不可以留空格. eg: gender=femal————right gender =femal———–wrong gender= femal———–wrong 2.条件测试语句 [ 符号的两边都要留空格. eg: if [ $gender = femal ]; then——-right. echo “you are femal”; fi if[ $gender...———————–wrong if [$gender...———————-wrong. 3.条件测试的内容,如果是字符串比较的话, 比较符号两边要留空格! eg: if [ $gender = femal ]; t