Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #16691
| From | Jonathan Rascher <jon@bcat.name> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | Re: Shell exits after process substitution when using DEBUG trap with extdebug |
| Date | 2020-08-04 09:29 -0500 |
| Message-ID | <mailman.757.1596551388.2739.bug-bash@gnu.org> (permalink) |
| References | <CAFG5iOhJ61520b7DKiHbjSAOcR01jHOhnYa-biv9dTowK11Vtg@mail.gmail.com> <fe173c2c-1743-cf9e-4a28-64337dbc9062@case.edu> <CAFG5iOijac5OgdvvzC8d1wAMLJ=K-N3kzP=dahgV5=skd8+2=g@mail.gmail.com> |
On Tue, Aug 4, 2020 at 9:20 AM Chet Ramey <chet.ramey@case.edu> wrote: > On 8/3/20 9:44 PM, Jonathan Rascher wrote: > > $ bash --version > > GNU bash, version 5.0.3(1)-release (x86_64-pc-linux-gnu) > > > > $ uname -a > > Linux penguin 5.4.40-04224-g891a6cce2d44 #1 SMP PREEMPT Tue Jun 23 > 20:21:29 > > PDT 2020 x86_64 GNU/Linux > > > > (This is a Pixelbook running the default Crostini Linux VM under Chrome > > OS 84.0.4147.110. I can reproduce the issue on regular Debian too, > though.) > > > > To reproduce, run the following commands: > > > > shopt -s extdebug > > trap : DEBUG > > : < <(:) > > Thanks for the report. I can't reproduce this with macOS, but I can with > RHEL 7. I'll take a look. > Thanks! The EOF hunch made me decide to see what happened with ignoreeof set. Sure enough, instead of exiting when I type the first character after the command with the process substitution, bash just prints `Use "exit" to leave the shell.` And then the character I actually typed is still echoed to the console, and I can keep using the shell. (It doesn't exit if ignoreeof is set.) Cheers, Jon
Back to gnu.bash.bug | Previous | Next | Find similar
Re: Shell exits after process substitution when using DEBUG trap with extdebug Jonathan Rascher <jon@bcat.name> - 2020-08-04 09:29 -0500
csiph-web