discuss@mandoc.bsd.lv
 help / color / mirror / Atom feed
* Suggestion: describe formatting of ENVIRONMENT section in mdoc(7)
@ 2025-10-22 18:02 onf
  2025-10-30 20:12 ` onf
  0 siblings, 1 reply; 2+ messages in thread
From: onf @ 2025-10-22 18:02 UTC (permalink / raw)
  To: discuss

Hi all,

the description of the ENVIRONMENT section in mdoc(7) says:
  Lists the environment variables used by the utility, and explains
  the syntax and semantics of their values.  The environ(7) manual
  provides examples of typical content and formatting.

Except my system's environ(7) is written in man, so all I can tell
is that they're formatting the list of env vars as if I used
  .Bl -tag -width 7n

But when I look at the source of OpenBSD's environ(7), they are using
  .Bl -tag -width LONGEST-ENV-VAR-HERE

Including such details in mdoc(7) would be helpful for users on
platforms where mdoc isn't the norm.

Cheers,
onf
--
 To unsubscribe send an email to discuss+unsubscribe@mandoc.bsd.lv


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

* Re: Suggestion: describe formatting of ENVIRONMENT section in mdoc(7)
  2025-10-22 18:02 Suggestion: describe formatting of ENVIRONMENT section in mdoc(7) onf
@ 2025-10-30 20:12 ` onf
  0 siblings, 0 replies; 2+ messages in thread
From: onf @ 2025-10-30 20:12 UTC (permalink / raw)
  To: discuss

On Wed Oct 22, 2025 at 8:02 PM CEST, onf wrote:
> the description of the ENVIRONMENT section in mdoc(7) says:
>   Lists the environment variables used by the utility, and explains
>   the syntax and semantics of their values.  The environ(7) manual
>   provides examples of typical content and formatting.
>
> Except my system's environ(7) is written in man, so all I can tell
> is that they're formatting the list of env vars as if I used
>   .Bl -tag -width 7n
>
> But when I look at the source of OpenBSD's environ(7), they are using
>   .Bl -tag -width LONGEST-ENV-VAR-HERE

P.S. This difference is NOT due to the largest env var being 7 chars
     long in my system's environ(7). For instance, the local environ(7)
     includes:
       LOGNAME
              The name of the logged-in user (used by some System-V derived
              programs).  Set at login time, see section NOTES below.
--
 To unsubscribe send an email to discuss+unsubscribe@mandoc.bsd.lv


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

end of thread, other threads:[~2025-10-30 20:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-22 18:02 Suggestion: describe formatting of ENVIRONMENT section in mdoc(7) onf
2025-10-30 20:12 ` onf

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).