[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 0c44194be2bfbd39a9f9fd15149356f088e70ffe

Ville Skyttä ville.skytta at iki.fi
Tue Jul 7 15:51:47 UTC 2009


The following commit has been merged in the master branch:
commit 0c44194be2bfbd39a9f9fd15149356f088e70ffe
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Tue Jul 7 18:50:56 2009 +0300

    Improve xmllint --dtdvalid, --relaxng, --schema and --schematron completions.

diff --git a/contrib/xmllint b/contrib/xmllint
index e643611..59d7570 100644
--- a/contrib/xmllint
+++ b/contrib/xmllint
@@ -17,8 +17,24 @@ _xmllint()
 			_filedir
 			return 0
 			;;
-		--path|--dtdvalid|--dtdvalidfpi|--maxmem|--encode|--pattern|\
-		--relaxng|--schema|--schematron)
+		--path|--dtdvalidfpi|--maxmem|--encode|--pattern)
+			# argument required but no completions available
+			return 0
+			;;
+		--dtdvalid)
+			_filedir dtd
+			return 0
+			;;
+		--relaxng)
+			_filedir rng
+			return 0
+			;;
+		--schema)
+			_filedir xsd
+			return 0
+			;;
+		--schematron)
+			_filedir sch
 			return 0
 			;;
 	esac

-- 
bash-completion



More information about the Bash-completion-commits mailing list