Quote:
[[ ... ]] is not sh syntax. Use [ .. ].
]
Afraid it is supported by IEEE 1003.1:2004. Under shell command language reserved words section:
Reserved words are words that have special meaning to the shell
.....
The following words may be recognized as reserved words on some implementations (when none of the characters are quoted), causing unspecified results:
[[ ]] function select
......