[root@haha ~]# aa=22[root@haha ~]# bb=22[root@haha ~]# [ "&aa" == "&bb" -a "$aa" -gt 33 ] && echo yes || echo nono[root@haha ~]# [ "&aa" == "&bb" -a "$aa" -gt 20 ] && echo yes || echo nono
看下符号“&”,获取变量值要用“$”