“unary operator expected” error in Bash if condition

前端 未结 4 1961
无人及你
无人及你 2020-11-27 09:23

I\'ve been trying to figure out whats wrong with this but just can\'t figure it out..

This is the part seems to be getting an error..

elif [ $operati         


        
4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-27 09:57

    Try assigning a value to $aug1 before use it in if[] statements; the error message will disappear afterwards.

提交回复
热议问题