[Bash-completion-commits] [SCM] bash-completion branch, master, updated. a2c2227d1d6aac117da1ec59521384ed3e9e77e3
Ville Skyttä
ville.skytta at iki.fi
Mon Jun 8 21:25:25 UTC 2009
The following commit has been merged in the master branch:
commit a2c2227d1d6aac117da1ec59521384ed3e9e77e3
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Tue Jun 9 00:25:06 2009 +0300
Use compgen -W instead of grepping $cur in munin-run.
diff --git a/contrib/munin-node b/contrib/munin-node
index f9a037c..6dee174 100644
--- a/contrib/munin-node
+++ b/contrib/munin-node
@@ -27,7 +27,8 @@ _munin-run()
COMPREPLY=( $( compgen -W '--config --servicedir --sconfdir \
--sconffile --help --debug --version' -- $cur ) )
else
- COMPREPLY=( $( command ls /etc/munin/plugins | grep "^$cur" ) )
+ COMPREPLY=( $( compgen -W '$( command ls /etc/munin/plugins )' \
+ -- $cur ) )
fi
} &&
complete -F _munin-run munin-run
--
bash-completion
More information about the Bash-completion-commits
mailing list