Skip site navigation (1)Skip section navigation (2)
Date:      19 Nov 2001 13:12:42 -0800
From:      swear@blarg.net (Gary W. Swearingen)
To:        setantae <setantae@submonkey.net>
Cc:        FreeBSD-gnats-submit@FreeBSD.ORG, doc@FreeBSD.ORG
Subject:   Re: docs/32082: true.1 totally incorrect
Message-ID:  <g6vgg631o5.gg6@localhost.localdomain>
In-Reply-To: <20011119112558.GA65070@rhadamanth>
References:  <E165YJb-000EfO-00@rhadamanth.private.submonkey.net> <d38zd3493u.zd3@localhost.localdomain> <20011119112558.GA65070@rhadamanth>

next in thread | previous in thread | raw e-mail | index | archive | help
I think "true" and "false" should not bother with DIAGNOSTIC sections,
but if used they should match the description's terminology and sense.

All of "exit code", "exit status", "status" are in common use ("exit
value", less so), but in the "sh", "ksh", and "csh" man pages "exit
code" is used only in "sh" and there only in two adjacent sentences.
Selection of "status" or "exit status" is more context dependent and a
matter of taste.  (I would try to avoid using "code", even though that
is more natural to me than "status" because of my personal experience.)

It's debatable whether the status of "false" should be given as "one" or
"non-zero".  Should man pages describe the actual program or the
presumed specification of the program?  What specification should be
presumed in this case?  The shell man pages sometimes say that a command
returns "one" when "non-zero" would seem to suffice.  (I think man pages
should describe presumed specifications, but in this case I think the
specification should be that "false" should exit with status = "1".)

Which brings up another issue.  Is an exit status code value an integer
or a string and should they be given as numerics or English words?  (I
guess I'd wimp out and say that people should be expected to deal with
the small confusion and allow both forms but recommend English words in
most contexts as demanded by standard rules of English for readability.)

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?g6vgg631o5.gg6>