wokaotesting

[macg@machome ~]$ sh test.shinput your choice:yyinput is correct[macg@machome ~]$ sh test.shinput your choice:nninput is correct输错了也走then,都走then,为什么?因为if把$var="yes"连读成一个变量,而此变量为空,返回1,,则走else[macg@machome ~]$ sh test.shinput your choice:yyinput error[macg@machome ~]$ sh test.shinput your choice:nonoinput error一切正常

于千万年之中,于千万人之中,在时间无涯的荒野中,

wokaotesting

相关文章:

你感兴趣的文章:

标签云: