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


Groups > gnu.groff.bug > #1768 > unrolled thread

eqn macros mistreat string arguments

Started byDoug McIlroy <doug@cs.dartmouth.edu>
First post2020-03-11 15:19 -0400
Last post2020-03-11 15:19 -0400
Articles 1 — 1 participant

Back to article view | Back to gnu.groff.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#1768 — eqn macros mistreat string arguments

FromDoug McIlroy <doug@cs.dartmouth.edu>
Date2020-03-11 15:19 -0400
Subjecteqn macros mistreat string arguments
Message-ID<mailman.2490.1583954364.2412.bug-groff@gnu.org>
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

[toc] | [standalone]


Back to top | Article view | gnu.groff.bug


csiph-web