Re: Bug#1132887: script: "script file -c command" stopped working

Karel Zak <[email protected]> Tue, 7 Apr 2026 15:26:58 +0200
Newsgroups org.kernel.vger.util-linux
Message-ID <x7m64hxjjld7rkfjwuta75hzmj3f6en57mpvdfttzdliebdqxn@ym5mhuzim23o>
On Tue, Apr 07, 2026 at 10:17:45AM +0200, Chris Hofstaedtler wrote:
> 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?

I have created bugfix for this, see https://github.com/util-linux/util-linux/pull/4201

Seems we will need v2.42.1 ASAP :-)

    Karel


-- 
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com