Math for Computer Science
stellar.mit.edu18 ポイント投稿者 stantona0 コメント
[ -n $var ]
is the same as test -n $var
$var is not quoted, so when this command is run, word splitting occurs and therefore $var is null. Which there falls into the one argument rule above.