Opened 9 years ago

Closed 9 years ago

#6661 closed (fixed)

bash completion script fails for python -i <tab>

Reported by: Soeren Sonnenburg <bugreports@…> Owned by: nobody
Component: Core (Management commands) Version: master
Severity: Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

consider there is a package foo.py in the current directory, then

$ python -i fo<tab>

will fail like:

$ python -i fobasename: invalid option -- i
Try `basename --help' for more information.
basename: invalid option -- i
Try `basename --help' for more information.
basename: invalid option -- i
Try `basename --help' for more information.

More information here:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=450913

Attachments (2)

completion_fix.diff (1.5 KB) - added by Soeren Sonnenburg <bugreports@…> 9 years ago.
proposed fix
bash_completion.diff (1.4 KB) - added by James Bennett 9 years ago.
Same patch, slightly more amenable to a straight 'patch' application

Download all attachments as: .zip

Change History (5)

Changed 9 years ago by Soeren Sonnenburg <bugreports@…>

Attachment: completion_fix.diff added

proposed fix

comment:1 Changed 9 years ago by James Bennett

Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset

You beat me to it; I was just catching up on Debian bug mail. This is the correct fix, though for expediency I'm going to upload a fresh copy as an svn diff from the root of the tree (our preferred format). Then I'll promote it up for checkin.

Changed 9 years ago by James Bennett

Attachment: bash_completion.diff added

Same patch, slightly more amenable to a straight 'patch' application

comment:2 Changed 9 years ago by James Bennett

Component: Uncategorizeddjango-admin.py
Triage Stage: UnreviewedReady for checkin

comment:3 Changed 9 years ago by Jacob

Resolution: fixed
Status: newclosed

(In [7156]) Fixed #6661: fixed a bug with bash completion and python -i. Thanks, Soeren Sonnenburg.

Note: See TracTickets for help on using tickets.
Back to Top