[xen-tools] [PATCH] workaround dash arithmetic expansion issues in 90-make-fstab

Andrew Sutherland andrew at theptrgroup.com
Sun Jul 22 22:59:04 CEST 2007


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: workaround-dash-arithmetic-issue.patch
Type: text/x-patch
Size: 2822 bytes
Desc: not available
URL: <http://sym.noone.org/pipermail/xen-tools-discuss/attachments/20070722/427c0df4/attachment.bin>


More information about the xen-tools-discuss mailing list