On Tue, Jul 17, 2007 at 03:42:53PM +0200, frantisek holop wrote:
| i have found a script on hp-ux that uses
| [[ ]] instead of the if [ ]; then construct
| so i went to sh(1), and while [[ is listed
| as a compound command, i couldn't find any
| explanation of what it does and how is it
| different if at all.
|
| could the doc experts advise please and
| update the docs?
My manpage (ksh(1)) says :
[[ expression ]]
Similar to the test and [ ... ] commands (described later), with
the following exceptions:
And then lists some exceptions. This could be a difference between sh
and ksh (which, I believe, is only a difference in documentation).
Cheers,
Paul 'WEiRD' de Weerd
--
>++++++++[<++++++++++>-]<+++++++.>+++[<------>-]<.>+++[<+
+++++++++++>-]<.>++[<------------>-]<+.--------------.[-]
http://www.weirdnet.nl/