]> git.ipfire.org Git - thirdparty/util-linux.git/commit
setterm: Document behavior of redirection
authorStanislav Brabec <sbrabec@suse.cz>
Wed, 28 Feb 2024 14:06:14 +0000 (15:06 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 29 Feb 2024 18:37:22 +0000 (19:37 +0100)
commit4aa584a0e7482b89599c01986cd4ea69a397f808
treefd3e861bcc0866c5112d544037dcf4603358aef2
parent311ea4e73b8b35788e1bbc784350082e45e9d445
setterm: Document behavior of redirection

Debugging an error of setterm, I realized that setterm --powerdown operates
on stdout but setterm --powersave operates on stdin. Such unexpected
behavior should be documented.

I prefer a less accurate generic "always redirect both stdin and stdout"
over recommending of the correct I/O stream for each option separately.

Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
term-utils/setterm.1.adoc