tech@mandoc.bsd.lv
 help / color / mirror / Atom feed
* if/ie d condition always true
@ 2023-08-05 13:37 наб
  2023-08-08 18:05 ` Ingo Schwarze
  0 siblings, 1 reply; 2+ messages in thread
From: наб @ 2023-08-05 13:37 UTC (permalink / raw)
  To: tech

[-- Attachment #1: Type: text/plain, Size: 901 bytes --]

Happens on 1.14.6-1+b1 and some CVS HEAD version I have dated "Oct 26  2022":
  $ printf '%s\n' '.ds ABCD zupaninka 3' '.ie dABCD "\*[ABCD]".' '.el noabcd' | mandoc
  ()                                                                          ()
  
  "zupaninka 3".
  
                                                                              ()
  $ printf '%s\n' '.ie dABCD "\*[ABCD]".' '.el noabcd' | mandoc
  ()                                                                          ()
  
  "".
  
                                                                              ()

At least -Tlint also warns for this since it's using an undefined
variable. But it probably shouldn't since mandoc_roff(7) says
  • If the first character of condition is ‘d’, it evaluates to
    true if the rest of condition is the name of an existing user
    defined macro or string;

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-08-08 18:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-05 13:37 if/ie d condition always true наб
2023-08-08 18:05 ` Ingo Schwarze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).