Subject: Re: replacement for bc(1), dc(1), diff(1), and diff(3)
To: Otto Moerbeek <otto@drijf.net>
From: Phil Nelson <phil@cs.wwu.edu>
List: tech-userlevel
Date: 03/27/2005 07:57:52
=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday 27 March 2005 07:24, Phil Nelson wrote:
> On Sunday 27 March 2005 04:11, you wrote:
> > That's 68 digits, a backslash and 3 digits.
> > Line lenght is 69
>
> You are right.  GNU bc is wrong.

Well, after thinking about this for a while, I went back to the ChangeLog a=
nd=20
found a change in March of 1995 where I changed the line length to 68=20
numbers, the backslash and then the linefeed for a total of 70 characters. =
 I=20
was convinced by someone else that POSIX line lengths include the linefeed.
My first implementation did it the same way that your bc does it.

=2D --Phil

=2D --=20
Phil Nelson                       NetBSD: http://www.netbsd.org
e-mail: phil@cs.wwu.edu           Coda: http://www.coda.cs.cmu.edu
http://www.cs.wwu.edu/nelson=20
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (NetBSD)

iD8DBQFCRtgDzbodwsP3RI0RAoP/AJ4qsni2Lzf86kdEhsjfowbkDQXRaACguM/0
EoQY5DX6buD+XZW93mzMeSE=3D
=3DX7xg
=2D----END PGP SIGNATURE-----