On 2007/07/17 16:07, Paul de Weerd wrote:
> 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).

It does different things depending on whether it's run as ksh or sh.

Reply via email to