Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.groff.bug > #1767

eqn mishandles quoted strings in macro arguments

Path csiph.com!goblin2!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail
From Doug McIlroy <doug@cs.dartmouth.edu>
Newsgroups gnu.groff.bug
Subject eqn mishandles quoted strings in macro arguments
Date Tue, 10 Mar 2020 21:39:09 -0400
Lines 15
Approved bug-groff@gnu.org
Message-ID <mailman.2445.1583890753.2412.bug-groff@gnu.org> (permalink)
References <202003110139.02B1d9mv034615@tahoe.cs.Dartmouth.EDU>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding 7bit
X-Trace usenet.stanford.edu 1583890754 5040 209.51.188.17 (11 Mar 2020 01:39:14 GMT)
X-Complaints-To action@cs.stanford.edu
To bug-groff@gnu.org
Envelope-to bug-groff@gnu.org
User-Agent Heirloom mailx 12.5 7/5/10
X-detected-operating-system by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy]
X-Received-From 129.170.212.100
X-BeenThere bug-groff@gnu.org
X-Mailman-Version 2.1.23
Precedence list
List-Id "Bug reports for the GNU version of nroff, troff et al" <bug-groff.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-groff>, <mailto:bug-groff-request@gnu.org?subject=unsubscribe>
List-Archive <https://lists.gnu.org/archive/html/bug-groff>
List-Post <mailto:bug-groff@gnu.org>
List-Help <mailto:bug-groff-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-groff>, <mailto:bug-groff-request@gnu.org?subject=subscribe>
X-Mailman-Original-Message-ID <202003110139.02B1d9mv034615@tahoe.cs.Dartmouth.EDU>
Xref csiph.com gnu.groff.bug:1767

Show key headers only | View raw


Eqn does not take quotes into account when parsing macro
arguments. Example:
        .EQ
        define f % $1 %
        f("a,b")
        .EN
Eqn thinks the call of f has two arguments, each with an
unmatched quote. This interpretation violates the plain
meaning of this statement in classic (e.g v7 and v10)
man pages for eqn: `Strings enclosed in double quotes " "
are passed through untouched.' (Full disclosure: v7
eqn did not support macros with arguments; v10 eqn did.)

Doug McIlroy

Back to gnu.groff.bug | Previous | Next | Find similar | Unroll thread


Thread

eqn mishandles quoted strings in macro arguments Doug McIlroy <doug@cs.dartmouth.edu> - 2020-03-10 21:39 -0400

csiph-web