public inbox for util-linux@vger.kernel.org
 help / color / mirror / Atom feed
From: Evgeny Kapun <abacabadabacaba@gmail.com>
To: Karel Zak <kzak@redhat.com>
Cc: Chris Hofstaedtler <zeha@debian.org>,
	1132887@bugs.debian.org, util-linux@vger.kernel.org,
	wanbingjiang@webray.com.cn
Subject: Re: Bug#1132887: script: "script file -c command" stopped working
Date: Wed, 8 Apr 2026 16:36:50 +0300	[thread overview]
Message-ID: <cc9deabe-7529-440d-bb42-67740f47dfc9@gmail.com> (raw)
In-Reply-To: <x7m64hxjjld7rkfjwuta75hzmj3f6en57mpvdfttzdliebdqxn@ym5mhuzim23o>

On 4/7/26 16:26, Karel Zak wrote:
> I have created bugfix for this, see https://github.com/util-linux/util-linux/pull/4201

It seems that this fix doesn't handle the case where -- is used as an
argument to an option. For example, `script -I --` before v2.42 would
interpret -- as an argument to -I, but the pre-scanning in that PR would
break it.

The value can come from a variable, e.g. `script -I "$VAR"` and `script
--log-in "$VAR"` will usually work, but break if $VAR is --. Similarly,
`script "-I$VAR"` will usually work, but break if $VAR is the empty
string. The only approach without special cases seems to be `script
"--log-in=$VAR"`, but it doesn't seem to be very popular.


  reply	other threads:[~2026-04-08 13:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <88e0b54d-3c86-46ca-ab3f-e116073216d6@gmail.com>
2026-04-07  8:17 ` Bug#1132887: script: "script file -c command" stopped working Chris Hofstaedtler
2026-04-07 13:26   ` Karel Zak
2026-04-08 13:36     ` Evgeny Kapun [this message]
2026-04-10  8:42     ` Chris Hofstaedtler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cc9deabe-7529-440d-bb42-67740f47dfc9@gmail.com \
    --to=abacabadabacaba@gmail.com \
    --cc=1132887@bugs.debian.org \
    --cc=kzak@redhat.com \
    --cc=util-linux@vger.kernel.org \
    --cc=wanbingjiang@webray.com.cn \
    --cc=zeha@debian.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox