On Fri, 26 Jan 2007, Oleg Verych wrote: > In Debian's version it has no `bc', while native `bc' is producing > crap like that: > ,-*- bash -*- > |[EMAIL PROTECTED]:~$ printf "%u" $(( -1 )) ; echo > |18446744073709551615 > |[EMAIL PROTECTED]:~$ echo -1 | bc > |-1 > |[EMAIL PROTECTED]:~$ printf "%u" $(( 0xFF )) ; echo > |255 > |[EMAIL PROTECTED]:~$ echo FF | bc > |99 > |[EMAIL PROTECTED]:~$ echo F | bc > |15 > |[EMAIL PROTECTED]:~$ > `-*- > > i can't understand the result... I think linux/scripts/makelst may be > updated to have sh's version of address calculation ;)
No, IMHO that should not be a reason to change anything in the kernel. Just set ibase=16 or read the fine manual: info '(bc)About Expressions and Special Variables' Tim - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/