UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: .Chapter 4
The Bourne Shell and Korn Shell
Next: Reference: name()
 

[[ ]]

[[ expression ]]

Korn shell only. Same as test expression or [ expression ], except that [[ ]] allows additional operators. Word splitting and filename expansion are disabled. Note that the brackets ([ ]) are typed literally, and that they must be surrounded by whitespace.

Additional Operators

&&

Logical AND of test expressions (short circuit).

||

Logical OR of test expressions (short circuit).

<

First string is lexically "less than" the second.

>

First string is lexically "greater than" the second.


Previous: Reference: .UNIX in a Nutshell: System V EditionNext: Reference: name()
Reference: .Book IndexReference: name()

The UNIX CD Bookshelf NavigationThe UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System