On Sat, Feb 8, 2025 at 10:31 AM Robert Elz <k...@munnari.oz.au> wrote:

>
>
> It isn't a valid form for a C constant.    bash allows that kind of thing
> in its arithmetic contexts, but this is not one.
>
>
Jeez moving target, thanks to bring C in the loop I got it now :-) I like
this orthogonality :-)

$ printf '%d\n' 2#1
bash: printf: 2#1: invalid number
2
$ printf '%d\n' $((2#1))
1
$ printf '%d\n' 0b1
1
$ printf '%d\n' $((0b1))
bash: 0b1: value too great for base (error token is "0b1")
$


lol

Reply via email to