From c8b296683f70fae3dbf609b7671a17f8aca346c5 Mon Sep 17 00:00:00 2001 From: Collin Funk Date: Fri, 27 Mar 2026 22:45:56 -0700 Subject: [PATCH] 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. --- doc/coreutils.texi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/coreutils.texi b/doc/coreutils.texi index acbb5454a..5fe87ace5 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -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}