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


Groups > gnu.groff.bug > #1768

eqn macros mistreat string arguments

From Doug McIlroy <doug@cs.dartmouth.edu>
Newsgroups gnu.groff.bug
Subject eqn macros mistreat string arguments
Date 2020-03-11 15:19 -0400
Message-ID <mailman.2490.1583954364.2412.bug-groff@gnu.org> (permalink)
References <202003111919.02BJJG0H120235@tahoe.cs.Dartmouth.EDU>

Show all headers | View raw


Gnu eqn incorrectly deems quoted commas in macro calls to be argument
separators. This example evokes the diagnostic, `newline before end of
quoted text':
        .EQ
        define f % $1 %
        f("a,b")
        .EN
This violates a cardinal rule that dates from the original eqn man page:
`Strings enclosed in double quotes " " are passed through untouched.'

Norman Wilson confirms that the Research implementation of eqn circa
v10 handles the example correctly. (V10 was the earliest printed manual
to describe macros with arguments. Though it does not overtly explain
comma-hiding, it does assert the cardinal rule.)

Doug McIlroy

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


Thread

eqn macros mistreat string arguments Doug McIlroy <doug@cs.dartmouth.edu> - 2020-03-11 15:19 -0400

csiph-web