/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bashcomp.py

Set extglob only temporarily for function definition. (LP #439827)

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
# Customized by Sven Wilhelm/Icecrash.com
17
17
# Adjusted for automatic generation by Martin von Gagern
18
18
 
 
19
if shopt -q extglob; then
 
20
        _tmp_unset_extglob=""
 
21
else
 
22
        _tmp_unset_extglob="shopt -u extglob"
 
23
fi
19
24
shopt -s extglob progcomp
20
25
%(function_name)s ()
21
26
{
77
82
        return 0
78
83
}
79
84
complete -F %(function_name)s -o default bzr
 
85
$_tmp_unset_extglob
 
86
unset _tmp_unset_extglob
80
87
"""
81
88
 
82
89
def bash_completion_function(out, function_name="_bzr"):