We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
if [ 0 ] then echo "always triggers" fi
if false then echo "never triggers" fi
[ str ] checks whether str is non-empty. It doesn't matter if str is 0, it will still be evaluated for non-emptyness.
[ str ]
str
0
Instead, use the command false which -- as the manual puts it -- does nothing, unsuccessfully.
false
None