Date: Wed, 13 Jan 2016 06:47:34 +0100 From: Bertram Scharpf <lists@bertram-scharpf.de> To: freebsd-questions@freebsd.org Subject: Re: dc(1) bugs Message-ID: <20160113054734.GA75312@becker.bs.l> In-Reply-To: <0McVKy-1aajq60oIS-00Hgju@mail.gmx.com> References: <0McVKy-1aajq60oIS-00Hgju@mail.gmx.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160113054734.GA75312>