On Sat, Dec 20, 2003 at 08:57:29PM +0100, Ferenc Wagner wrote:
David Laight david@l8s.co.uk writes:
BTW, there's no need to make the script bash specific, we can use expr instead:
- i=$(($i+1))
- i=`expr $i + 1`
That isn't a bashism, it is required to be supported by any shell that claims to be Posix compliant. That probably means everything except an AT&T/SYSV bourne shell.
There we have it, the first Solaris user complaining. We seem to need the above patch after all... Will submit.
Just tell the Solaris user to put /usr/xpg4/bin on $PATH before /usr/bin. Then 'sh' will be 'ksh' and posix compliant...
David