]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
doc: tty: mention the removal of the -s option from POSIX
authorCollin Funk <collin.funk1@gmail.com>
Sat, 28 Mar 2026 05:45:56 +0000 (22:45 -0700)
committerCollin Funk <collin.funk1@gmail.com>
Sat, 28 Mar 2026 05:45:56 +0000 (22:45 -0700)
* doc/coreutils.texi (tty invocation): Mention that POSIX.1-2001 removed
the -s option and that portable scripts can redirect standard out to
/dev/null instead.

doc/coreutils.texi

index acbb5454a2d38a24cd60ca5e92e2891be30f63ee..5fe87ace5c49b0b4f095cdaa9a64b1911072098e 100644 (file)
@@ -15403,6 +15403,8 @@ The program accepts the following option.  Also see @ref{Common options}.
 @optItemx{tty,--quiet,}
 Print nothing; only return an exit status.
 
+POSIX.1-2001 removed the @option{-s} option.  Portable shell scripts
+should redirect standard output to @file{/dev/null} instead.
 @end table
 
 @cindex exit status of @command{tty}