madsmith / bash-completion-lib

Automatically exported from code.google.com/p/bash-completion-lib
GNU General Public License v2.0
0 stars 0 forks source link

sudo error: _get_cword: command not found #42

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. sudo view <TAB>

What is the expected output? What do you see instead?

Expected are no errors.  Instead I get:

sudo view bash: _get_cword: command not found
bash: _filedir: command not found

Environment:
- bash_completion_lib-1.3.0

Original issue reported on code.google.com by fvu...@gmail.com on 25 Jan 2009 at 4:01

GoogleCodeExporter commented 8 years ago
`comp_load_deinit()' was executed within the inner/second `comp_load()' 
execution. 
Fixed by adding a global variable COMP_LOAD_DEINIT: True (1, default) if 
`comp_load'
must deinitialize itself after having installed the actual completion handler. 
Deinitializing means removing variables and functions which are only useful to
`comp_load'.  If set to False (0), the variables and functions remain defined.

Fixed in r104.

Original comment by fvu...@gmail.com on 1 Feb 2009 at 6:36