File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 2
2
3
3
_lintian_tags ()
4
4
{
5
- local match search tags check_files
5
+ local search tags check_files
6
6
_comp_expand_glob check_files ' /usr/share/lintian/checks/*.desc'
7
7
(( ${# check_files[@]} )) || return 0
8
8
9
9
tags=$( awk ' /^Tag/ { print $2 }' " ${check_files[@]} " )
10
10
if [[ $cur == * , ]]; then
11
11
search=${cur// ,/ }
12
12
for item in $search ; do
13
- match=$( command grep -nE " ^Tag: $item $" \
14
- " ${check_files[@]} " | cut -d: -f1)
15
13
tags=$( command sed -e " s/\<$item \>//g" <<< " $tags" )
16
14
done
17
15
COMPREPLY+=($( compgen -W " $tags " ) )
@@ -50,7 +48,7 @@ _lintian_checks()
50
48
51
49
_lintian_infos ()
52
50
{
53
- local match search infos collection_files
51
+ local search infos collection_files
54
52
_comp_expand_glob collection_files ' /usr/share/lintian/collection/*.desc'
55
53
(( ${# collection_files[@]} )) || return 0
56
54
@@ -59,8 +57,6 @@ _lintian_infos()
59
57
if [[ $cur == * , ]]; then
60
58
search=${cur// ,/ }
61
59
for item in $search ; do
62
- match=$( command grep -nE " ^Collector: $item $" \
63
- " ${collection_files[@]} " | cut -d: -f1)
64
60
infos=$( command sed -e " s/\<$item \>//g" <<< " $infos" )
65
61
done
66
62
COMPREPLY+=($( compgen -W " $infos " ) )
You can’t perform that action at this time.
0 commit comments