Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
执行以下行时,我得到error ksh[7]: test: argument expected
error ksh[7]: test: argument expected
while [ $cont = "y" ]
这条线有什么问题?
$cont可能没有设置,这就是它失败的原因。
$cont
用双引号将变量括起来,如下所示:
while [ "$cont" = "y" ]