单项选择题
在Shell脚本的以下if语句中,存在哪些问题? If [
str2 ] then echo "OK" echo "The second line" else echo "error" fi
A、条件表达式错误,应改为if (test str1=str2)
B、echo "error"行前面没有空格
C、此处的if语句结构完整,是正确的
D、在then下面有两行语句,应只能为一行
点击查看答案
