Optimisation request

2018-11-26 Thread Martijn Dekker
I've noticed bash-5.0beta is quite a bit faster than bash-4.4 in running a lot of pure shell code. Good news. One optimisation that isn't done yet: if a subshell function like f() (foo) is used in a command substitution, it forks twice. I would like it if it could be optimised to elim

Re: [PATCH] Fix custom program's completions when initial word is set

2018-11-26 Thread Luca Boccassi
On Sun, 2018-11-25 at 23:04 +1300, Tom Ryder wrote: > On Fri, Nov 23, 2018 at 12:48:54PM +, Luca Boccassi wrote: > > The fix is to only override foundcs if both iw_compspec is not null > > and we are not in command position. > > Thank you for this patch. I first ran into the issue with 5.0-bet