[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 53062bbae2a9026fc2585b09ad375a31ae6122cf
Ville Skyttä
ville.skytta at iki.fi
Tue Nov 16 21:06:09 UTC 2010
The following commit has been merged in the master branch:
commit 53062bbae2a9026fc2585b09ad375a31ae6122cf
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Tue Nov 16 22:59:36 2010 +0200
Don't bother passing unused arg to _perlmodules().
diff --git a/completions/perl b/completions/perl
index 8705841..839846a 100644
--- a/completions/perl
+++ b/completions/perl
@@ -41,7 +41,7 @@ _perl()
return 0
;;
-m|-M)
- _perlmodules "$cur"
+ _perlmodules
return 0
;;
esac
@@ -84,7 +84,7 @@ _perldoc()
else
# return available modules (unless it is clearly a file)
if [[ "$cur" != */* ]]; then
- _perlmodules "$cur"
+ _perlmodules
COMPREPLY=( "${COMPREPLY[@]}" $( compgen -W \
'$( PAGER=/bin/cat man perl | \
sed -ne "/perl.*Perl overview/,/perlwin32/p" | \
--
bash-completion
More information about the Bash-completion-commits
mailing list