# ; 测试 $ ls; echo test test.sh test # && 测试 $ [ a == a ] && ls test.sh # || 测试 $ [ a != a ] || ls test.sh # 组合测试 $ [ a == a ] && echo Y || echo N Y $ [ a == b ] && echo Y || echo N N