On Aug 31 2025, G. Branden Robinson wrote: > At 2025-08-31T19:20:58+0000, Maria wrote: >>>> for i in 1 2 3 4 5; do sleep 1; echo $i; done > >(echo) > >> I tried the input you provided, and indeed it is just the subprocess >> that exits, but with my input, it is Bash itself that exits, not the >> subprocess. > > I wonder if the `lastpipe` shell option is implicated.
This is not a pipeline, but a normal redirection (though the process substitution procuces a file that is connected to a pipe, thus behaves like a pipeline). -- Andreas Schwab, [email protected] GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."
