Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #261876
| From | John Crawley <john@bunsenlabs.org> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: apt-get aborts in subshell with redirections on Debian 12 |
| Date | 2023-09-25 02:20 +0200 |
| Message-ID | <HhHup-bkoN-1@gated-at.bofh.it> (permalink) |
| References | <HhrSF-baRk-1@gated-at.bofh.it> <HhudP-bcpK-9@gated-at.bofh.it> <HhwyZ-bdIW-5@gated-at.bofh.it> |
| Organization | BunsenLabs |
On 24/09/2023 21:36, Greg Wooledge wrote: > 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. > Thanks for testing. I just tried, and yes it runs OK when the commands are in a script. But type directly into the terminal: errors=$(sudo apt-get install mirage 2>&1 1>/dev/tty) To see the immediate abort. (But not on Debian 11, or after invoking 'sh'.) -- John
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
apt-get aborts in subshell with redirections on Debian 12 John Crawley <john@bunsenlabs.org> - 2023-09-24 09:40 +0200
Re: apt-get aborts in subshell with redirections on Debian 12 Michel Verdier <mv524@free.fr> - 2023-09-24 12:10 +0200
Re: apt-get aborts in subshell with redirections on Debian 12 Greg Wooledge <greg@wooledge.org> - 2023-09-24 14:40 +0200
Re: apt-get aborts in subshell with redirections on Debian 12 John Crawley <john@bunsenlabs.org> - 2023-09-25 02:20 +0200
Re: apt-get aborts in subshell with redirections on Debian 12 Greg Wooledge <greg@wooledge.org> - 2023-09-25 02:40 +0200
Re: apt-get aborts in subshell with redirections on Debian 12 John Crawley <john@bunsenlabs.org> - 2023-09-25 05:00 +0200
Re: apt-get aborts in subshell with redirections on Debian 12 John Crawley <john@bunsenlabs.org> - 2023-09-25 05:20 +0200
Re: apt-get aborts in subshell with redirections on Debian 12 Greg Wooledge <greg@wooledge.org> - 2023-09-25 05:50 +0200
Re: apt-get aborts in subshell with redirections on Debian 12 John Crawley <john@bunsenlabs.org> - 2023-09-25 06:40 +0200
Re: apt-get aborts in subshell with redirections on Debian 12 Greg Wooledge <greg@wooledge.org> - 2023-09-25 13:30 +0200
Re: apt-get aborts in subshell with redirections on Debian 12 John Crawley <john@bunsenlabs.org> - 2023-09-26 04:40 +0200
Re: apt-get aborts in subshell with redirections on Debian 12 Michael <ml@hemathor.de> - 2023-09-25 11:20 +0200
Re: apt-get aborts in subshell with redirections on Debian 12 Greg Wooledge <greg@wooledge.org> - 2023-09-25 13:30 +0200
Re: apt-get aborts in subshell with redirections on Debian 12 John Crawley <john@bunsenlabs.org> - 2023-09-26 05:00 +0200
Re: apt-get aborts in subshell with redirections on Debian 12 Greg Wooledge <greg@wooledge.org> - 2023-09-26 05:10 +0200
Re: apt-get aborts in subshell with redirections on Debian 12 John Crawley <john@bunsenlabs.org> - 2023-09-26 05:20 +0200
sudo+use_pty+urxvt+pipe [WAS: apt-get aborts in subshell with redirections on Debian 12] John Crawley <john@bunsenlabs.org> - 2023-12-24 09:50 +0100
csiph-web