Thus said Ralph Corderoy on Sun, 09 Jun 2024 22:16:25 +0100:

> What am I doing wrong?  I don't see 'success' in

That's interesting,  I'm not sure why  the source wouldn't have  it. You
can see the rendered man page here:

http://man.openbsd.org/ed

However, I'm now confused why the man page as rendered doesn't match the
sources as you have discovered.

It seems that it us using the Ex macro:

.Sh EXIT STATUS
.Ex -std ed

I'm no  man page expert but  it seems that .Ex  is a macro that  loads a
standard  string that  is  used  commonly between  commands  where 0  is
success and  >0 is error.  And it  takes the name  of the utility  as an
argument.

Indeed it is found in mdoc_validate.c in the definition of post_ex():

http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/mandoc/mdoc_validate.c?rev=1.306&content-type=text/x-cvsweb-markup

        roff_word_alloc(mdoc, n->line, n->pos,
            "on success, and\\~>0 if an error occurs.");

Andy


Reply via email to