Philip Martin wrote on Mon, May 09, 2011 at 13:26:29 +0100:
> Daniel Shahaf <danie...@apache.org> writes:
> 
> > SunOS 5.10's /bin/sh chokes:
> >
> > $ echo $((5*2))
> > syntax error: `(' unexpected
> >
> > Daniel
> > (I didn't test it before because the host I used has a time-based login 
> > policy)
> 
> SunOS's /bin/sh is Bourne, not POSIX.  SunOS provides /usr/xpg4/bin/sh
> which is POSIX.
> 

... and indeed $((5*2)) works there.

Thanks.

Reply via email to