Re: string comparison bug in pic
"G. Branden Robinson" <[email protected]>
| Newsgroups | gmane.comp.printing.groff.general |
|---|---|
| Message-ID | <20260105142118.3vdhngfhwdzl5hhs@illithid> |
Hi folks, Doug originally sent this to me privately, but I'm forwarding it to the list with his permission. I concur with his economically articulated general principle. ----- Forwarded message from Douglas McIlroy <[email protected]> ----- Date: Sat, 3 Jan 2026 21:33:29 -0500 From: Douglas McIlroy <[email protected]> To: "G. Branden Robinson" <[email protected]> Message-ID: <CAKH6PiVTb1Sgoze7G66UUsw2c7-7b3t1mFK6FZfVxM7nWv+K0g@mail.gmail.com> Subject: Re: string comparison bug in pic > Our pic(1) man page documents "print" as a GNU extension print expr was in the original pic, but expressions were numeric and did not include relational operators, Gnu added many operators and allowed multiple expressions. I agree with your guess that the grammar was not adjusted sufficiently. One insufficient adjustment is that more than one argument is allowed but not less.. On general principles, if there's an obvious limiting behavior as n goes to zero, it should be allowed, regardless of what one thinks of its utility. In the case of print, the behavior should be to print an empty line. Doug ----- End forwarded message ----- Regards, Branden
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEh3PWHWjjDgcrENwa0Z6cfXEmbc4FAmlbyNcACgkQ0Z6cfXEm bc63fxAApRocAeGjeCokLLipTtgzzG7ayYSuCsQolzPDpJ/91NImQtelvmJop+QI nIiiZvFzKRXbD/FDDX5K3UgE9/Qx8H5k1VCrjGmnFS4cJbd9Ft8av+lUmiqOtG/G 2y5mns+gNKp7iA9uG/h+SStfRtvg70ryas84ov8+NAtTe5CRMH/Nvi2j/P23T4au rwUwhYRnWLWwa4D+OCkD4OIsO+x0wU0w/jwpF3tr62ktV/ylWY1XSQMZdcX3MlCq Rs7I3+0zjvResIJsBrkwNJCedS0UHOnRViPEhFXednoB73r3BzJy4tSH+yZhgF67 k06YxFIzLTAgyI7OtQkkn/n0/LQtsvGusipWm39G/dF3RzWpN7+DWhMywC6f0syN uDfOxiwy30DncUlIIEL/SWOVBMi9yqOSRzvBRm+3o8t3CIXb+kC4lYzKTJeJb2ly cq1U4ZJkVPXNj+y9ZfRIO0xXfUQb1rZtpqXjTiHeqXrm7fWSEYvJ86bHHLlgXyCe AC1Zr9fJnTeu6g2qYLTkkp100z9YDG/uUc+4L8IN0/mxFf7G4FC8CzwAAfoT8N4/ L1vFNJJkJ6Etwvm/IIqmH+bNemS/VQEwz5GxBBFzHFPW5tyeN16l/kxcyBAtx+ST HmTgPoyU5jmkvtDElnToxIiZ2f9bujE02jWB2+z8nKKdqYtmgkQ= =ivY5 -----END PGP SIGNATURE-----