Path: csiph.com!goblin2!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail From: Doug McIlroy 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: 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" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <202003110139.02B1d9mv034615@tahoe.cs.Dartmouth.EDU> Xref: csiph.com gnu.groff.bug:1767 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