Other [[...]] Operators

!expression true if expression is false
(expression) true if expression is true; used to group expressions
[[expression1 && expression2]] true if both expression1 and expression2 are true
[[expression1 || expression2]] true either expression1 or expression2 are true

Get Korn Shell: Unix and Linux Programming Manual, Third Edition, The now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.