Opened 17 years ago

Closed 17 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: dev
Severity: Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

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@…> 17 years ago.
proposed fix
bash_completion.diff (1.4 KB ) - added by James Bennett 17 years ago.
Same patch, slightly more amenable to a straight 'patch' application

Download all attachments as: .zip

Change History (5)

by Soeren Sonnenburg <bugreports@…>, 17 years ago

Attachment: completion_fix.diff added

proposed fix

comment:1 by James Bennett, 17 years ago

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.

by James Bennett, 17 years ago

Attachment: bash_completion.diff added

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

comment:2 by James Bennett, 17 years ago

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

comment:3 by Jacob, 17 years ago

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