-
Notifications
You must be signed in to change notification settings - Fork 1.9k
SC2075
Vidar Holen edited this page Oct 20, 2022
·
1 revision
[[ aardvark \< zebra ]][[ aardvark < zebra ]]Grammatically speaking, [ is considered a normal command name, so < and > are interpreted as redirections. When using the lexicographical string operators < and > in [ .. ], they must be escaped (e.g. \< or "<").
[[ is considered its own grammatical construct, and therefore it does not require (nor does it allow) escaping < or >.
None
- Help by adding links to BashFAQ, StackOverflow, man pages, POSIX, etc!