[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

eqn macros mistreat string arguments

From: Doug McIlroy
Subject: eqn macros mistreat string arguments
Date: Wed, 11 Mar 2020 15:19:16 -0400
User-agent: Heirloom mailx 12.5 7/5/10

Gnu eqn incorrectly deems quoted commas in macro calls to be argument
separators. This example evokes the diagnostic, `newline before end of
quoted text':
        define f % $1 %
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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]