while [ $RET -ne 0 [red]||[/red] $RET -ne 3 ][red];[/red]
do
RET=$?
done
[tt][red]||[/red][/tt] - wrong, use [tt]-o[/tt] instead
[tt][red];[/red][/tt] - wrong, not needed
Beside this, the [tt]while[/tt] is pointless, an [tt]if[/tt] would be enough. ( Unless you really want to run into an endless loop. )
Probably a common mistake to make, mixing up && or ||
in such a test....
It might be helpfull to use a "Truth table"
to see if the desired result is accomplised.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.