bash loses control of jobs inside a command substitution

2019-11-19 Thread Luiz Angelo Daros de Luca
Hello, Normally 'wait -n' will return the exit code of background process when they terminate before wait is runned. However, when bg processes and 'wait -n' runs inside a command substitution, bash loses control of bg process as soon as they exit. nr=${1:-5} subjobs() { local -a pids

Re: [FR] save command times and exit status in history automatically

2019-11-19 Thread Ilya Sher
Hi My thoughts regarding which properties / fields can be useful to have in history (originally pertaining to another shell but hope it's helpful): https://github.com/ngs-lang/ngs/wiki/History-Design#commands-history Regards, Ilya On 8 Nov 2019, at 1:47, Ángel mailto:an...@16bits.net>> wrote:

Re: Issues with history substitution and its documentation

2019-11-19 Thread Chet Ramey
On 11/18/19 1:10 PM, Jim Monte wrote: Thanks again for looking at these reports. I have thankfully essentially completed my implementation of history for ngspice (an open-source successor to SPICE 3F5 with a csh-like front end that handles parsing a bit differently than a shell would), so I bel

Re: Issues with history substitution and its documentation

2019-11-19 Thread Chet Ramey
On 11/18/19 12:40 PM, Jim Monte wrote: Thank you for looking into all of these reports. My issue here was that in both cases there had not yet been any ?string? search, so they should behave the same way -- an event is not required to not have a most recent ?string? search. So if the default is