From owner-freebsd-questions@freebsd.org Wed Jan 13 05:47:39 2016 Return-Path: Delivered-To: freebsd-questions@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 396ADA6D18B for ; Wed, 13 Jan 2016 05:47:39 +0000 (UTC) (envelope-from lists@bertram-scharpf.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.130]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 953FE1820 for ; Wed, 13 Jan 2016 05:47:37 +0000 (UTC) (envelope-from lists@bertram-scharpf.de) Received: from becker.bs.l ([85.180.2.187]) by mrelayeu.kundenserver.de (mreue005) with ESMTPSA (Nemesis) id 0Mex5B-1aYJLy2OGf-00OTbA for ; Wed, 13 Jan 2016 06:47:35 +0100 Received: from bsch by becker.bs.l with local (Exim 4.86 (FreeBSD)) (envelope-from ) id 1aJEHO-000Jj3-OT for freebsd-questions@freebsd.org; Wed, 13 Jan 2016 06:47:34 +0100 Date: Wed, 13 Jan 2016 06:47:34 +0100 From: Bertram Scharpf To: freebsd-questions@freebsd.org Subject: Re: dc(1) bugs Message-ID: <20160113054734.GA75312@becker.bs.l> Mail-Followup-To: freebsd-questions@freebsd.org References: <0McVKy-1aajq60oIS-00Hgju@mail.gmx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <0McVKy-1aajq60oIS-00Hgju@mail.gmx.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: Bertram Scharpf X-Provags-ID: V03:K0:oeppEn26xRqKIz+lenVW5bdSJphF64CgjecONtLPpnxnvrXGkGh nPh/0Tvq44jdrCrQx0T3LjonYqFVehlJwUZuBOCzdcnkAtOYU5opO9QD8Gpu9glF2txtPrr V0ryyUCqKhRIyRN2uD3PuZkAkaAk4rYWxfwk814pzrUYy9vOgy2IPepiv/LU+2XW/aLs828 VrFh5iCZpHLIekbOMQANA== X-UI-Out-Filterresults: notjunk:1;V01:K0:Tf05BMFOcJc=:VHwLPaQOYWFT5dHeI0mv9K IuU9/03O+90uboUvMi7ViULu8AvzYrxgAch79A0+MIERNGazL2X8FH/WjhRU22Q9WA4GH0Zov 5Oo2o9d3RT7xbhkxoTggTdf1F9nwsiehSYvYFvYENBpaxpFrwowDGWIe+oo8uNYdL0wmcDIjm PIaTDWcgLYeSqTPosl2iCkuoLHr/Mx/29f2rECttd3iWK6jk2A6+0s9MEosxygNyN/pvJjO2d 662lCiX9kakuNaF0D0jdLx6P75Ur8w6IHgxqhivBIugq3YBiUWUtxKFWk8sDZ4EiWb2/SOQGq sbeJaFe6S2ZaKCLdoHyGokn/Nul67toBw4eFo355WozEMjvMt3qGzQG+SzxdlhWQqEI4VVKUM tsN6wC8slKGkimKkUZUyoiBU5DeCtMP7bZmNAFMeIYAGMa7TAZupbn3Bo7krK6iCFj53eR6D/ T7bxBYKaoCNdKfymqVxSSvbolOK19lqcvLDJU+zBGmf9h4jVL3btCgGo7gak+cZUc/+fdnTVl Os1vFp/G44HCmxcRY4M0OnSXwJ3hMEKes4TyBgMMEgkXe2BGAbIXs65OKFVl98Xo5Q4yyPBlL QX0mhjlB/y9TSt7MJSFy0tlIhrjMwTNuVVhxTigv1TtMJDYpqudi7KiqfR0mRINX+0QhqDk06 DxZvk2+q5IoRT3YK5WmZoOSPpw4FFfSnvWiKXAtZmPNK+fJVMkG6Srw8V2SZtB/EHc+4= X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jan 2016 05:47:39 -0000 Hi, On Tuesday, 12. Jan 2016, 19:23:36 -0900, CK wrote: > These appear to be bugs to me, but please verify if possible: > > $ dc -xe '50k16o16i.1vp' > 0 > $ dc -xe '50k10o16i.1vp' > 0 > $ dc -xe '50k10o10i.1vp' > 31622776601683793319988935444327185337195551393252 First of all: $ cat '50k10o10i.1vp' I do not expect "dc" to be a well-tested tool. Probably 100k*more people use software like WordPress etc. My way to do calculations is in Ruby, mostly by pipe or self-written commands in Vim. Surely there are similar ways to do such things using Perl or Python. If you really insist on "dc" you shouldn't be afraid of debugging that. Let me propose to remove "dc" from the base system because fixing the bugs is too much work in respect to what installable tools provide nowadays. Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de