[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.63.0701270113400.4567@gockel.physik3.uni-rostock.de>
Date: Sat, 27 Jan 2007 01:18:30 +0100 (CET)
From: Tim Schmielau <tim@...sik3.uni-rostock.de>
To: Oleg Verych <olecom@...wer.upol.cz>
cc: Rob Landley <rob@...dley.net>, Andrew Morton <akpm@...l.org>,
Sam Ravnborg <sam@...nborg.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: sed _s_gnu_alternatives_ (Re: [rft] (g)awk substitution)
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 -*-
> |olecom@...wer:~$ printf "%u" $(( -1 )) ; echo
> |18446744073709551615
> |olecom@...wer:~$ echo -1 | bc
> |-1
> |olecom@...wer:~$ printf "%u" $(( 0xFF )) ; echo
> |255
> |olecom@...wer:~$ echo FF | bc
> |99
> |olecom@...wer:~$ echo F | bc
> |15
> |olecom@...wer:~$
> `-*-
>
> 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 majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists