]> git.ipfire.org Git - thirdparty/util-linux.git/commit
script: support non-option argument as command
authorWanBingjiang <wanbingjiang@webray.com.cn>
Thu, 29 May 2025 08:39:46 +0000 (16:39 +0800)
committerKarel Zak <kzak@redhat.com>
Tue, 24 Jun 2025 10:00:33 +0000 (12:00 +0200)
commit7268e79bc5365034a6e5b38ac5d9bf635e2dafc2
treed718d18fcde24006553fd0eaf2968a0dd6eef8da
parentbc90a54995d5d0074cf03e01f5030219efa74f4f
script: support non-option argument as command

[kzak@redhat.com: - don't use POSIXLY_CORRECT, use "+" in getopt_long(),
                  - use strv_join() rather than local concat function]

Based-on: https://github.com/util-linux/util-linux/pull/3599
Fixes: https://github.com/util-linux/util-linux/issues/3481
Signed-off-by: Karel Zak <kzak@redhat.com>
term-utils/script.1.adoc
term-utils/script.c