lintian: Use <<< instead of echo and a pipe (Alioth: #312163).
This commit is contained in:
parent
6c0337926c
commit
dc545f22f2
@ -10,7 +10,7 @@ _lintian_tags()
|
|||||||
for item in $search; do
|
for item in $search; do
|
||||||
match=$(grep -nE "^Tag: $item$" /usr/share/lintian/checks/*.desc \
|
match=$(grep -nE "^Tag: $item$" /usr/share/lintian/checks/*.desc \
|
||||||
| cut -d: -f1 )
|
| cut -d: -f1 )
|
||||||
tags=$( echo $tags | sed -e "s/\<$item\>//g" )
|
tags=$( sed -e "s/\<$item\>//g" <<<$tags )
|
||||||
done
|
done
|
||||||
COMPREPLY+=( $(compgen -W "$tags") )
|
COMPREPLY+=( $(compgen -W "$tags") )
|
||||||
elif [[ "$cur" == *,* ]]; then
|
elif [[ "$cur" == *,* ]]; then
|
||||||
@ -35,7 +35,7 @@ _lintian_checks()
|
|||||||
todisable=$(grep -e ^Check-Script -e ^Abbrev $match | \
|
todisable=$(grep -e ^Check-Script -e ^Abbrev $match | \
|
||||||
cut -d\ -f2 )
|
cut -d\ -f2 )
|
||||||
for name in $todisable; do
|
for name in $todisable; do
|
||||||
checks=$( echo $checks | sed -e "s/\<$name\>//g" )
|
checks=$( sed -e "s/\<$name\>//g" <<<$checks )
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
COMPREPLY+=( $(compgen -W "$checks") )
|
COMPREPLY+=( $(compgen -W "$checks") )
|
||||||
@ -58,7 +58,7 @@ _lintian_infos()
|
|||||||
for item in $search; do
|
for item in $search; do
|
||||||
match=$( grep -nE "^Collector: $item$" \
|
match=$( grep -nE "^Collector: $item$" \
|
||||||
/usr/share/lintian/collection/*.desc | cut -d: -f1 )
|
/usr/share/lintian/collection/*.desc | cut -d: -f1 )
|
||||||
infos=$( echo $infos | sed -e "s/\<$item\>//g" )
|
infos=$( sed -e "s/\<$item\>//g" <<<$infos )
|
||||||
done
|
done
|
||||||
COMPREPLY+=( $(compgen -W "$infos") )
|
COMPREPLY+=( $(compgen -W "$infos") )
|
||||||
elif [[ "$cur" == *,* ]]; then
|
elif [[ "$cur" == *,* ]]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user