[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apt-get aborts in subshell with redirections on Debian 12



On Sun, Sep 24, 2023 at 12:03:12PM +0200, Michel Verdier wrote:
> #!/bin/bash
> errors=$(sudo apt-get install unknown 2>&1 1>/dev/tty)
> echo "output: $errors"
> errors=$(sudo apt-get install mirage 2>&1 1>/dev/tty)
> echo "output: $errors"
> 
> [...]
> It waits until I type 'n'

Same here.


Reply to: