Hi,

thank you for the report, CC'ing upstream.

On Tue, Apr 07, 2026 at 07:07:59AM +0300, Evgeny Kapun wrote:
> Package: bsdutils
> Version: 1:2.42-1
> 
> If I run script(1) as "script file -c command", it returns an error:
> 
> script: unexpected number of arguments
> Try 'script --help' for more information.
> 
> It used to work in earlier versions, so now scripts that rely on the old
> behavior are broken.

Can you check if reverting this commit makes it work again?

| commit 7268e79bc5365034a6e5b38ac5d9bf635e2dafc2
| Author:     WanBingjiang <[email protected]>
| AuthorDate: Thu May 29 16:39:46 2025 +0800
| Commit:     Karel Zak <[email protected]>
| CommitDate: Tue Jun 24 12:00:33 2025 +0200
| 
|     script: support non-option argument as command
| 
|     [[email protected]: - 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 <[email protected]>


Best,
Chris

Reply via email to