doc: tty: mention the removal of the -s option from POSIX

* 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.
This commit is contained in:
Collin Funk committed 2026-03-27 22:45:56 -07:00
1 parent fcccbab0fb
commit c8b296683f
1 file changed
+2
+2
View 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}