Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Feb 2016 14:07:41 +0300
From:      Ruslan Makhmatkhanov <rm@FreeBSD.org>
To:        FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Possible bug in bc(1)
Message-ID:  <56C848FD.6040502@FreeBSD.org>

next in thread | raw e-mail | index | archive | help
Hello,

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

[rm@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?56C848FD.6040502>