I'd like to cheick that the one of two options are set: either the bin to true, or str is provided:
bin=false; str=; if $bin -o [ -n "$str" ]; then echo yes; fi
doesn't echoes anything, as it should be, but:
bin=false; str='str'; if $bin -o [ -n "$str" ]; then echo yes; fi
doesn't echo either - while it should. What do I do wrong?