linux -bash: [: 缺少 `]
具体就上面哪一行,不造哪里出问题了,缺少啥啊
#!/bin/bash
count=0
read -p "input your name:" name
if [ $name = "yyy"]; then
while [$count -lt 5]
do
read -p "input your passwd:" passwd
if [ $passswd = "123456"]; then
echo "hello $name"
break
else
echo "your passwd is not right"
fi
declare 0i count=&count+1
done
else
echo "sorry,your name is not right"
fi
```