Opened 7 years ago

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

Download all attachments as: .zip

Change History (5)

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

proposed fix

comment:1 Changed 7 years ago by ubernostrum

  • 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 7 years ago by ubernostrum

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

comment:2 Changed 7 years ago by ubernostrum

  • Component changed from Uncategorized to django-admin.py
  • Triage Stage changed from Unreviewed to Ready for checkin

comment:3 Changed 7 years ago by jacob

  • Resolution set to fixed
  • Status changed from new to closed

(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