From 5c54692f4fb258954432f2335d0d9eedc636694d Mon Sep 17 00:00:00 2001 From: Todd Zullinger Date: Sep 11 2010 01:41:44 +0000 Subject: fedpkg: Remove filenames option from completion The bash completion 'filenames' option prevents proper completion of local refs like tmz/f13. On systems with bash-completion >= 1.2, this should have little effect because the _filedir command sets the option as needed (or emulates it on older bash releases that lack compopt). On systems with older bash-completion (like EL-5 currently), there is a minor downside in that filename completion won't append trailing slashes to directories without the 'filenames' option. Ideally, bash-completion will be updated on EL-5 and this minor inconvenience will vanish sometime soon. --- diff --git a/src/fedpkg.bash b/src/fedpkg.bash index d2279cc..d986465 100644 --- a/src/fedpkg.bash +++ b/src/fedpkg.bash @@ -224,7 +224,7 @@ _fedpkg() return 0 } && -complete -F _fedpkg -o filenames fedpkg +complete -F _fedpkg fedpkg have _fedpkg && _fedpkg_target()