[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #66009] [troff] accepts `|` as operand delimiter, but should not
From: |
G. Branden Robinson |
Subject: |
[bug #66009] [troff] accepts `|` as operand delimiter, but should not |
Date: |
Sat, 20 Jul 2024 17:10:07 -0400 (EDT) |
URL:
<https://savannah.gnu.org/bugs/?66009>
Summary: [troff] accepts `|` as operand delimiter, but should
not
Group: GNU roff
Submitter: gbranden
Submitted: Sat 20 Jul 2024 09:10:05 PM UTC
Category: Core
Severity: 3 - Normal
Item Group: Warning/Suspicious behaviour
Status: In Progress
Privacy: Public
Assigned to: gbranden
Open/Closed: Open
Discussion Lock: Any
Planned Release: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Sat 20 Jul 2024 09:10:05 PM UTC By: G. Branden Robinson <gbranden>
My revamp of numerical expression handling exposed a bug.
`|` was being accepted as a delimiter in conditional expressions (for
formatted output and string comparisons), but should not have been.
Why?
Because it is a valid character in a _numeric_ expression, which conditional
expressions also interpret.
Example:
.sp |432u
DWB 3.3, Heirloom Doctools, and Solaris 10 _troff_s all fail to interpret `|`
as a delimiter.
$ echo '.if |foo|foo| .tm they are the same' | nroff
...silently exits without output in all of them.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?66009>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
- [bug #66009] [troff] accepts `|` as operand delimiter, but should not,
G. Branden Robinson <=