From: наб Date: Sun, 14 May 2023 23:19:58 +0000 (+0200) Subject: mesg.1 cleanups/updates X-Git-Tag: v2.40-rc1~463 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=03a8f430c53a4bd6f8ac7d633efdb7216c3a6185;p=thirdparty%2Futil-linux.git mesg.1 cleanups/updates First hunk: grammar. Second hunk: (a) mentioning BSD ptys and not UNIX98 ones is odd, (b) mentioning /only/ ptys is odder still. Third hunk: mesg is found in the UNIX Programmer's Manual; it takes its modern form in V7 (it's unclear to me why V6 specifically is mentioned, since it's still default-invert + always-report-"was X"). --- diff --git a/term-utils/mesg.1.adoc b/term-utils/mesg.1.adoc index 5ccef72884..81af64c71f 100644 --- a/term-utils/mesg.1.adoc +++ b/term-utils/mesg.1.adoc @@ -54,7 +54,7 @@ The *mesg* utility is invoked by a user to control write access others have to t Traditionally, write access is allowed by default. However, as users become more conscious of various security risks, there is a trend to remove write access by default, at least for the primary login shell. To make sure your ttys are set the way you want them to be set, *mesg* should be executed in your login scripts. -The *mesg* utility silently exits with error status 2 if not executed on terminal. In this case execute *mesg* is pointless. The command line option *--verbose* forces mesg to print a warning in this situation. This behaviour has been introduced in version 2.33. +The *mesg* utility silently exits with error status 2 if not executed on a terminal. In this case executing *mesg* is pointless. The command line option *--verbose* forces *mesg* to print a warning in this situation. This behaviour has been introduced in version 2.33. == ARGUMENTS @@ -86,11 +86,12 @@ An error has occurred. == FILES -_/dev/[pt]ty[pq]?_ +_/dev/[pt]ty*_, _/dev/pts/[0-9]*_ == HISTORY -A *mesg* command appeared in Version 6 AT&T UNIX. +*mesg* (I) appears in the UNIX Programmer's Manual. +It used to invert the current state with no argument before Version 7 AT&T UNIX. == SEE ALSO