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

Ville Skyttä ville.skytta at iki.fi
Tue Apr 14 20:48:24 UTC 2009


The following commit has been merged in the master branch:
commit ed93d0b2b7f2294913a09cf035966bc09ef28688
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Tue Apr 14 23:48:11 2009 +0300

    Add chgrp --reference value completion.

diff --git a/CHANGES b/CHANGES
index 9292f6c..ed2f1ef 100644
--- a/CHANGES
+++ b/CHANGES
@@ -36,6 +36,7 @@ bash-completion (1.x)
     take arguments in both "--foo bar" and "--foo=bar" formats.
   * Use _split_longopt to improve and clean up aspell, chgrp, chown completion.
   * Add chown --from and --reference value completions.
+  * Add chgrp --reference value completion.
 
   [ Todd Zullinger ]
   * Make yum complete on filenames after install, deplist, update and upgrade
diff --git a/bash_completion b/bash_completion
index 96823bb..0cd8b4c 100644
--- a/bash_completion
+++ b/bash_completion
@@ -843,6 +843,11 @@ _chgrp()
 
 	_split_longopt && split=true
 
+	if [[ "$prev" == --reference ]]; then
+		_filedir
+		return 0
+	fi
+
 	$split && return 0
 		
 	# options completion

-- 
bash-completion



More information about the Bash-completion-commits mailing list