cmd.Cmd fails tab completion for lines beginning with !
(bang space)
#133363
Labels
type-bug
An unexpected behavior, bug, or error
Bug report
Bug description:
As noted in #133351 (comment) PDB allows commands that start with
!
, but Cmd fails to tab complete them if there's a space after the!
, because it falls down this code path:cpython/Lib/cmd.py
Lines 274 to 280 in 2bc8365
which expects
cmd
to always be a string, butparsecmd
is returningNone
instead when the line starts with!
anddo_shell
is not defined.CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs
!
#133364The text was updated successfully, but these errors were encountered: