On Tue, 08 Jul 2014 17:32:21 +0200, Jan Kratochvil wrote: > - -re "^completefilecommandcond ${objdir}/${subdir}/py-completion-t$" { > + -re "^completefilecommandcond ${completion_regex}$" { There was a racy bug here - and even in the former test - here should be: + -re "^completefilecommandcond ${completion_regex}\007$" { Updated fix attached. Jan