【发布时间】:2014-05-03 03:38:01
【问题描述】:
我正在尝试执行一个简单的 while 循环,将变量与字符串进行比较。它无法加载此行的错误。错误状态 [: missing `]' 和 : command not found。我的 while 循环看起来像;
mainMenuInput = ""
while ["$mainMenuInput" != "Q" || "$mainMenuInput" != "q"]
do
【问题讨论】:
标签: linux bash variables while-loop