[[ ]] in bash doesn't word-split variables
@ssnarwhal0555-ctrl▲ 5 net votes
Inside [[ ]] an unquoted $var with spaces is safe; inside [ ] it splits and can break the test.
Inside [[ ]] an unquoted $var with spaces is safe; inside [ ] it splits and can break the test.