From Fedora Project Wiki
(Created page with '= Modularized Bash-Completion = == Summary == Modularize bash-completion package. == Owner == * Name: Behdad Esfahbod * Email: besfahbo@redhat.com == Curren...')
 
No edit summary
 
Line 18: Line 18:


== Detailed Description ==
== Detailed Description ==
See [http://bugzilla.redhat.com/show_bug.cgi?id=475229|bug 475229] for details.
See [http://bugzilla.redhat.com/show_bug.cgi?id=475229 bug 475229] for details.


== Benefit to Fedora ==
== Benefit to Fedora ==
Line 27: Line 27:


Bash needs to be extended to add a "catch-all" completion handler.
Bash needs to be extended to add a "catch-all" completion handler.
That's tracked in [http://bugzilla.redhat.com/show_bug.cgi?id=475229|bug 475229].
That's tracked in [http://bugzilla.redhat.com/show_bug.cgi?id=475229 bug 475229].


We also need to modularize the bash-completion package.  There's an external project for that already [http://fvue.nl/wiki/Bash_completion_library|here].  We need to work with them to make it use the "catch-all" handler when available.
We also need to modularize the bash-completion package.  There's an external project for that already [http://fvue.nl/wiki/Bash_completion_library here].  We need to work with them to make it use the "catch-all" handler when available.


== How To Test ==
== How To Test ==

Latest revision as of 00:18, 6 June 2009

Modularized Bash-Completion

Summary

Modularize bash-completion package.

Owner

Current status

  • Targeted release: Fedora 12
  • Last updated: 2009-06-05
  • Percentage of completion: 20%

Bash-completion is the niftiest thing since Fedora itself. The implementation sucks though: Every interactive shell sources 200kb of shell scripts and keeps it in memory, consuming lots of memory, slowing startup down, and cluttering "set" output. We'll modularize it to make it both more maintainable and more efficient.

Detailed Description

See bug 475229 for details.

Benefit to Fedora

Reduced memory consumption: currently any interactive shell takes 200kb to load completion commands. It also takes considerable time (0.3 seconds?!). These are perhaps two reasons why bash-completion is not installed by default. We'll fix these.

Scope

Bash needs to be extended to add a "catch-all" completion handler. That's tracked in bug 475229.

We also need to modularize the bash-completion package. There's an external project for that already here. We need to work with them to make it use the "catch-all" handler when available.

How To Test

TBD.

User Experience

TBD.

Dependencies

None.

Contingency Plan

Stay with current bash-completion package.

Documentation

None.

Release Notes

TBD.

Comments and Discussion