Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

cmd.Cmd fails tab completion for lines beginning with! (bang space) #133363

Closed
Labels
type-bugAn unexpected behavior, bug, or error
@godlygeek

Description

@godlygeek

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 in2bc8365

ifbegidx>0:
cmd,args,foo=self.parseline(line)
ifcmd=='':
compfunc=self.completedefault
else:
try:
compfunc=getattr(self,'complete_'+cmd)

which expectscmd 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp