diff --git a/CHANGES b/CHANGES index 9292f6cc..ed2f1ef0 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 96823bb4..0cd8b4c0 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