]> 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:38:22 +0000 (19:38 +0100)
commitc0b2650acab9ec0aa1ab9473bf422afa920ed262
tree61ac49a8e6741458678c5fa9a4585f55aaab7453
parentd36a8b1db7d9a5b3d5e3b52c09fe347a0c524b2f
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>
(cherry picked from commit 4aa584a0e7482b89599c01986cd4ea69a397f808)
term-utils/setterm.1.adoc