Django

Code

Ticket #6661 (closed: fixed)

Opened 6 months ago

Last modified 6 months ago

bash completion script fails for python -i <tab>

Reported by: Soeren Sonnenburg <bugreports@nn7.de> Assigned to: nobody
Milestone: Component: django-admin.py
Version: SVN Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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

completion_fix.diff (1.5 kB) - added by Soeren Sonnenburg <bugreports@nn7.de> on 02/25/08 05:38:38.
proposed fix
bash_completion.diff (1.4 kB) - added by ubernostrum on 02/25/08 05:46:54.
Same patch, slightly more amenable to a straight 'patch' application

Change History

02/25/08 05:38:38 changed by Soeren Sonnenburg <bugreports@nn7.de>

  • attachment completion_fix.diff added.

proposed fix

02/25/08 05:45:46 changed by ubernostrum

  • needs_better_patch changed.
  • needs_tests changed.
  • needs_docs changed.

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.

02/25/08 05:46:54 changed by ubernostrum

  • attachment bash_completion.diff added.

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

02/25/08 05:47:22 changed by ubernostrum

  • component changed from Uncategorized to django-admin.py.
  • stage changed from Unreviewed to Ready for checkin.

02/25/08 13:38:09 changed by jacob

  • status changed from new to closed.
  • resolution set to fixed.

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


Add/Change #6661 (bash completion script fails for python -i <tab>)




Change Properties
Action