Possible bug in bc(1)

From: Ruslan Makhmatkhanov <rm_at_FreeBSD.org>
Date: Sat, 20 Feb 2016 14:07:41 +0300
Hello,

I'm getting strange result with something looking like valid data:

[rm_at_smsh-zfs ~]> bc
2*1\
2*1
24

I'd expect the output being like that:
2*1\
2
2*1
2

What I see in bc(1) man-page regarding to backslash is:
"The sequence ‘\<newline><whitespace>’ is ignored within numbers."

So looks like it doesn't actually ignored or I missing something?

Thanks for clarification.

-- 
Regards,
Ruslan

T.O.S. Of Reality
Received on Sat Feb 20 2016 - 10:13:48 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:02 UTC