[Debconf-devel] Bug#1061480: debconf should automatically be noninteractive if input is /dev/null
Colin Watson
cjwatson at debian.org
Sun Mar 9 12:34:17 GMT 2025
On Sat, Mar 08, 2025 at 07:17:29AM -0800, Josh Triplett wrote:
>Given that, the following command will reproduce this, and show the
>output to the terminal:
>systemd-run -P apt -y install wireshark-common </dev/null 2>&1 | cat
Thanks for the reproducer! That helps a lot.
I'm more inclined to do something like the attached patch; my feeling is
that it was probably a mistake that we put the `-t STDIN` check in
Readline rather than in Teletype, and I'd rather fix that than add an
additional prompt. What do you think? It works with your reproducer,
automatically falling back to Noninteractive.
--
Colin Watson (he/him) [cjwatson at debian.org]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: teletype-tty.patch
Type: text/x-diff
Size: 972 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debconf-devel/attachments/20250309/9e913614/attachment.patch>
More information about the Debconf-devel
mailing list