|
楼主 |
发表于 2003-5-26 11:14:02
|
显示全部楼层
最初由 plan9 发表
> i=n; until $i==$ii ;do echo ok;done
呵呵,不是C语言哟,没有==这种用法.
i=n; until [ "$i" = "$ii" ] ;do echo ok;done
1)明白.原来少了 空格.谢谢
2)我在rh9.0上有==这种用法的,man bash可以查到,没有例子,所以费解:
========================================================================
When the == and != operators are used, the string to the right of the operator is considered a pattern and matched according to
the rules described below under Pattern Matching. |
|