]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
mesg.1 cleanups/updates
authorнаб <nabijaczleweli@nabijaczleweli.xyz>
Sun, 14 May 2023 23:19:58 +0000 (01:19 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 17 May 2023 11:53:45 +0000 (13:53 +0200)
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").

term-utils/mesg.1.adoc

index 5ccef728846a1ce883c73263f03ddfb18fadf2a2..81af64c71fd0e0655c483ad6e6406ed3b4e4ea08 100644 (file)
@@ -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