coubeatczech wrote: > c...@notas:~$ if [ -z $variable ]; then echo true; fi > true > c...@notas:~$ > > Can anybody explain to me this behaviour? I would expect not any output in > the last command...? The variable is set to zero and there is the condition > is still true...?
http://bash-hackers.org/wiki/doku.php/commands/classictest#number_of_arguments_rules You'd need some quoting. Jan aka TheBonsai