Jordan Crouse wrote:
> > It works unless the vga bios file is zero bytes long :)
>
> Fixed - turns out that expr has a trick up its sleeve:
> Exit status is 0 if EXPRESSION is neither null nor 0, 1 if
> EXPRESSION is null or 0, 2 if EXPRESSION is syntactically
> invalid, and 3 if an error occurred
I like result=$[$[${something}]+$[${other}]] to not have to care.
$[] evaluates to 0
$[notanumber] also evaluates to 0
//Peter
--
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot