summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2011-11-26 16:08:29 +0200
committerVille Skyttä <ville.skytta@iki.fi>2011-11-26 16:08:29 +0200
commitdc545f22f20da16dde23fdb9ab6c940e49071390 (patch)
tree06e799697bb38bb8f90e5f51e98f38250ee88803
parent6c0337926c7f9972a076d58868f6e551153f2dbf (diff)
downloadbash-completion-dc545f22f20da16dde23fdb9ab6c940e49071390.tar.gz
lintian: Use <<< instead of echo and a pipe (Alioth: #312163).
-rw-r--r--completions/lintian6
1 files changed, 3 insertions, 3 deletions
diff --git a/completions/lintian b/completions/lintian
index 52eabe43..8e470758 100644
--- a/completions/lintian
+++ b/completions/lintian
@@ -10,7 +10,7 @@ _lintian_tags()
for item in $search; do
match=$(grep -nE "^Tag: $item$" /usr/share/lintian/checks/*.desc \
| cut -d: -f1 )
- tags=$( echo $tags | sed -e "s/\<$item\>//g" )
+ tags=$( sed -e "s/\<$item\>//g" <<<$tags )
done
COMPREPLY+=( $(compgen -W "$tags") )
elif [[ "$cur" == *,* ]]; then
@@ -35,7 +35,7 @@ _lintian_checks()
todisable=$(grep -e ^Check-Script -e ^Abbrev $match | \
cut -d\ -f2 )
for name in $todisable; do
- checks=$( echo $checks | sed -e "s/\<$name\>//g" )
+ checks=$( sed -e "s/\<$name\>//g" <<<$checks )
done
done
COMPREPLY+=( $(compgen -W "$checks") )
@@ -58,7 +58,7 @@ _lintian_infos()
for item in $search; do
match=$( grep -nE "^Collector: $item$" \
/usr/share/lintian/collection/*.desc | cut -d: -f1 )
- infos=$( echo $infos | sed -e "s/\<$item\>//g" )
+ infos=$( sed -e "s/\<$item\>//g" <<<$infos )
done
COMPREPLY+=( $(compgen -W "$infos") )
elif [[ "$cur" == *,* ]]; then