Re: Possible bug in bc(1)

2016-02-20 Thread Wolfgang Petzold
Hi, actually, if you "ignore \ within numbers", your input reads 2*12*1, doesn't it? W. Am 20.02.2016 um 12:07 schrieb Ruslan Makhmatkhanov: > 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

Possible bug in bc(1)

2016-02-20 Thread Ruslan Makhmatkhanov
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 ‘\’ is ignored within numbers." So looks like it doesn't