help / color / mirror / Atom feed
From: наб <>
Subject: if/ie d condition always true
Date: Sat, 5 Aug 2023 15:37:43 +0200	[thread overview]
Message-ID: <gzydmrf7b2gh3jyearlg4gla2nz4jipg5zxkzce3ogcqhtet2n@volord55pew6> (raw)

[-- 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 --]

             reply	other threads:[~2023-08-05 13:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-05 13:37 наб [this message]
2023-08-08 18:05 ` Ingo Schwarze

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gzydmrf7b2gh3jyearlg4gla2nz4jipg5zxkzce3ogcqhtet2n@volord55pew6 \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).