[Lldb-commits] [lldb] [lldb] Add test to document alias tab completion behaviour (PR #65760)

via lldb-commits lldb-commits at lists.llvm.org
Fri Sep 8 09:29:57 PDT 2023


jimingham wrote:

Just to make sure there's no confusion...  The reason that `b` completes to `__regex_break` is that we always prefer exact matches in completion.  Since we did:

`command alias b __regex_break
`

then `b<TAB>` should only complete to the `b` alias.  That makes sense, since executing `b` will run the `__regex_break` alias.

Maybe this was already clear, but it sounded from David's original comment that `b` selecting the `__regex_break` alias was because aliases & built-in commands are being treated differently, but in fact that one should still be unambiguous because exact matches always win.

https://github.com/llvm/llvm-project/pull/65760


More information about the lldb-commits mailing list