if [[ $Something ]] – in what situations does this work?
Johnny Rosenberg
gurus.knugum at gmail.com
Sat Feb 18 12:56:50 UTC 2012
I tried this with the $? variable, but failed. Seems like [[ $? ]] is
always true no matter the value of $?. [[ $? == 0 ]] seems to work,
though.
I thought that ”if [[ $? ]]” means ”if $? is True”. What is True
anyway? 0? 1? Anything but 0?
I am not sure what I am asking for here, but any kind of input in the
subject is welcome. Thanks.
Kind regards
Johnny Rosenberg
ジョニー・ローゼンバーグ
More information about the ubuntu-users
mailing list