From owner-freebsd-current@freebsd.org Sat Feb 20 11:45:08 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 53C73AAEEC7 for ; Sat, 20 Feb 2016 11:45:08 +0000 (UTC) (envelope-from wolfgang@heldvonkosmos.de) Received: from v22015082968727213.yourvserver.net (v22015082968727213.yourvserver.net [37.120.168.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1D9F5188 for ; Sat, 20 Feb 2016 11:45:07 +0000 (UTC) (envelope-from wolfgang@heldvonkosmos.de) Received: from v22015082968727213.yourvserver.net (unknown [127.0.0.1]) by v22015082968727213.yourvserver.net (Postfix) with ESMTP id AF5FF3C869 for ; Sat, 20 Feb 2016 12:45:04 +0100 (CET) X-Virus-Scanned: amavisd-new at v22015082968727213.yourvserver.net Received: from v22015082968727213.yourvserver.net ([127.0.0.1]) by v22015082968727213.yourvserver.net (v22015082968727213.yourvserver.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eaLEBkIJcq5q for ; Sat, 20 Feb 2016 12:45:03 +0100 (CET) Received: from [192.168.42.103] (aftr-109-91-36-47.unity-media.net [109.91.36.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: wolfgang@heldvonkosmos.de) by v22015082968727213.yourvserver.net (Postfix) with ESMTPSA id 358613C863 for ; Sat, 20 Feb 2016 12:45:03 +0100 (CET) Subject: Re: Possible bug in bc(1) To: freebsd-current@freebsd.org References: <56C848FD.6040502@FreeBSD.org> From: Wolfgang Petzold Message-ID: <56C851C5.9040405@heldvonkosmos.de> Date: Sat, 20 Feb 2016 12:45:09 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <56C848FD.6040502@FreeBSD.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Feb 2016 11:45:08 -0000 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 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 actually ignored or I missing something? > > Thanks for clarification. >