On Ubuntu feisty (and I believe edgy as well), /bin/sh links to dash
rather than bash. Although bash is cool with $(( x+1 )), dash is not.
Both are cool with $(( $x+1 )), which is what this patch does. Although
this presumably only affects distributions using dash as their /bin/sh,
it seems wise to change it in all hooks.
The relevant launchpad bug with links to the standard and the upstream
Debian bug can be found here:
https://bugs.launchpad.net/ubuntu/+source/dash/+bug/92189
(Apply with patch -p1)
Andrew Sutherland
Received on Sun Jul 22 2007 - 22:02:32 BST