util-linux/term-utils
Chris Hofstaedtler 267d2ac0f1 script: abort if unused arguments are given
scripts uses either a free-standing "file" argument, or the value
passed as --log-out "file". Additional filenames are ignored.
They are also ignored if --log-in "file" is given, as it turns off
output logging by default (can still be overriden by adding --log-out).
Avoid surprises when passing multiple filenames by writing usage
message instead.

[kzak@redhat.com: - use errtryhelp() rather than usage()]

Signed-off-by: Chris Hofstaedtler <zeha@debian.org>
Reported-by: наб <nabijaczleweli@nabijaczleweli.xyz>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1016193
Signed-off-by: Karel Zak <kzak@redhat.com>
2023-02-17 15:04:43 +08:00
..
Makemodule.am merge upstream 2.38.1 2023-02-17 14:33:46 +08:00
agetty.8 merge upstream 2.38.1 2023-02-17 14:33:46 +08:00
agetty.8.adoc merge upstream 2.38.1 2023-02-17 14:33:46 +08:00
agetty.c merge upstream 2.38.1 2023-02-17 14:33:46 +08:00
mesg.1 merge upstream 2.38.1 2023-02-17 14:33:46 +08:00
mesg.1.adoc merge upstream 2.38.1 2023-02-17 14:33:46 +08:00
mesg.c merge upstream 2.38.1 2023-02-17 14:33:46 +08:00
meson.build merge upstream 2.38.1 2023-02-17 14:33:46 +08:00
script-playutils.c merge upstream 2.38.1 2023-02-17 14:33:46 +08:00
script-playutils.h merge upstream 2.38.1 2023-02-17 14:33:46 +08:00
script.1 merge upstream 2.38.1 2023-02-17 14:33:46 +08:00
script.1.adoc merge upstream 2.38.1 2023-02-17 14:33:46 +08:00
script.c script: abort if unused arguments are given 2023-02-17 15:04:43 +08:00
scriptlive.1 merge upstream 2.38.1 2023-02-17 14:33:46 +08:00
scriptlive.1.adoc merge upstream 2.38.1 2023-02-17 14:33:46 +08:00
scriptlive.c merge upstream 2.38.1 2023-02-17 14:33:46 +08:00
scriptreplay.1 merge upstream 2.38.1 2023-02-17 14:33:46 +08:00
scriptreplay.1.adoc merge upstream 2.38.1 2023-02-17 14:33:46 +08:00
scriptreplay.c merge upstream 2.38.1 2023-02-17 14:33:46 +08:00
setterm.1 merge upstream 2.38.1 2023-02-17 14:33:46 +08:00
setterm.1.adoc merge upstream 2.38.1 2023-02-17 14:33:46 +08:00
setterm.c merge upstream 2.38.1 2023-02-17 14:33:46 +08:00
ttymsg.c merge upstream 2.38.1 2023-02-17 14:33:46 +08:00
ttymsg.h merge upstream 2.38.1 2023-02-17 14:33:46 +08:00
wall.1 merge upstream 2.38.1 2023-02-17 14:33:46 +08:00
wall.1.adoc merge upstream 2.38.1 2023-02-17 14:33:46 +08:00
wall.c merge upstream 2.38.1 2023-02-17 14:33:46 +08:00
write.1 merge upstream 2.38.1 2023-02-17 14:33:46 +08:00
write.1.adoc merge upstream 2.38.1 2023-02-17 14:33:46 +08:00
write.c merge upstream 2.38.1 2023-02-17 14:33:46 +08:00