[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Two trivial questions
From: |
Dave Kemper |
Subject: |
Re: Two trivial questions |
Date: |
Mon, 8 Nov 2021 15:31:14 -0600 |
On 11/8/21, Peter Schaffter <peter@schaffter.ca> wrote:
> Not all punctuation or trailing characters are ignored.
>
> $ printf ".ps 12.5\n.tm \\\n[.s]\n" | groff -z
> 12.5
> $ printf ".ps 12:5\n.tm \\\n[.s]\n" | groff -z
> 1
> $ printf ".ps 12&5\n.tm \\\n[.s]\n" | groff -z
> 1
Right, but those are behaving as documented (logical "or" and "and"
operators, respectively). It's groff's ignoring characters it doesn't
understand, rather than reporting them to the user, that seems a bit
dubious (but also not out of line with its historical leniency with
malformed input).