From: Felipe Contreras Date: Tue, 17 Nov 2020 19:52:16 GMT Subject: Re: [PATCH] completion: bash: improve alias loop detection Message-ID: In-Reply-To: On Tue, Nov 17, 2020 at 12:57 PM Junio C Hamano wrote: > > Felipe Contreras writes: > > > It is possible for the name of an alias to end with the name of another > > alias, in which case the code will incorrectly detect a loop. > > > > We can fix that by adding an extra space between words. > > > > Suggested-by: SZEDER Gábor > > Signed-off-by: Felipe Contreras > > --- > > contrib/completion/git-completion.bash | 9 +++++---- > > 1 file changed, 5 insertions(+), 4 deletions(-) > > OK. An extra local variable would not hurt and makes the code > easier to read. It was there on v2. Which now may be a more reasonable sequence. -- Felipe Contreras