[Bash-completion-commits] [SCM] bash-completion branch, master, updated. d0bcb5347e5269437205a8a7310363db6a1d94b0
Ville Skyttä
ville.skytta at iki.fi
Sun Sep 19 08:49:13 UTC 2010
The following commit has been merged in the master branch:
commit d0bcb5347e5269437205a8a7310363db6a1d94b0
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Sun Sep 19 11:46:20 2010 +0300
Don't complete jar and povray on filenames ending with a dot.
diff --git a/CHANGES b/CHANGES
index 46b7ceb..e122576 100644
--- a/CHANGES
+++ b/CHANGES
@@ -13,7 +13,7 @@ bash-completion (2.x)
* Add *.gif (Alioth: #312512), *.3gpp, *.3gpp2, and *.awb to mplayer
filename completions.
* Add "short" tarball extensions to unxz, unlzma etc completions.
- * Improve /etc/init.d/* and sqlite3 completions.
+ * Improve /etc/init.d/*, jar, povray, and sqlite3 completions.
* Fix p4 completion (Alioth: #312625).
* Add *.xsd, *.xsl, *.rng, and *.wsdl to xmllint filename completions.
* Recognize rpm query mode based on the --file, --group, --package, and
diff --git a/completions/jar b/completions/jar
index 75dcaf3..2969ce0 100644
--- a/completions/jar
+++ b/completions/jar
@@ -18,7 +18,7 @@ _jar()
_filedir
;;
*f)
- _filedir '?([ejw]ar|zip|[EJW]AR|ZIP)'
+ _filedir '@([ejw]ar|zip|[EJW]AR|ZIP)'
;;
*)
_filedir
diff --git a/completions/povray b/completions/povray
index cd03b94..91602c7 100644
--- a/completions/povray
+++ b/completions/povray
@@ -49,7 +49,7 @@ _povray()
;;
*)
cur="$povcur"
- _filedir '?(ini|pov)'
+ _filedir '@(ini|pov)'
return 0
;;
esac
--
bash-completion
More information about the Bash-completion-commits
mailing list