Re: set-e and command expansion

2024-02-04 Thread Kerin Millar
On Sun, 04 Feb 2024 20:27:56 +0300 Van de Bugger wrote: > Hi, > > bash version 5.2.21(1)-release (x86_64-redhat-linux-gnu) > Fedora Linux 38 > bash is installed from the Fedora repo, compiler I guess is gcc 13, probably > 13.2 or 13.2.1 > > All the test scripts follow the same scheme: > >

Re: set-e and command expansion

2024-02-04 Thread Greg Wooledge
On Sun, Feb 04, 2024 at 08:27:56PM +0300, Van de Bugger wrote: > Case 3: echo $(false) > > $ cat ./test > #!/bin/bash > set -e > echo before > echo $(false) > echo after > > $ ./test > before > > after > > Oops, in this case the script is NOT terminated before "echo after", but > co

set-e and command expansion

2024-02-04 Thread Van de Bugger
Hi, bash version 5.2.21(1)-release (x86_64-redhat-linux-gnu) Fedora Linux 38 bash is installed from the Fedora repo, compiler I guess is gcc 13, probably 13.2 or 13.2.1 All the test scripts follow the same scheme: #!/bin/bash set -e echo before COMMAND echo after Let's consider few

Re[3]: wait skips signals but first one

2024-02-04 Thread Mykyta Dorokhin
I've just tried the same with 5.1.16 andit also fixes the problem. diff --git a/trap.c b/trap.c index 1b27fb3..65e8f66 100644 --- a/trap.c +++ b/trap.c @@ -526,7 +526,7 @@ trap_handler (sig)       if (this_shell_builtin && (this_shell_builtin == wait_builtin))  {    wait_signal_received = sig; - 

Re: About `M-C-e` expand result `'` failed

2024-02-04 Thread Martin D Kealey
On Sat, 3 Feb 2024 at 07:21, Chet Ramey wrote: > On 2/2/24 3:36 PM, Zachary Santer wrote: > > Ultimately, what I'm saying is that a different bindable function that > performs all the shell expansions other than quote removal would be more > useful than shell-expand-line. > > OK, I'll take that