(( )) is korn syntax. By default the MKS KornShell does not support it. To change this put the shell in korn mode using set -o korn . For an alternate syntax look at the reference page for the test command (i.e. man test ).
By default the MKS KornShell follows the POSIX.2 standards and does not support (( )) . |