diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2010-11-01 19:26:53 +0200 |
---|---|---|
committer | Ville Skyttä <ville.skytta@iki.fi> | 2010-11-01 19:29:45 +0200 |
commit | 0f450219b667ec5f8d951b0c41593c7b983e2ada (patch) | |
tree | 054f929068849317af412dc94e9db23db437fa7b /completions/postfix | |
parent | 494c44f5a36d29955f46efe2289d0f945a8039c5 (diff) | |
download | bash-completion-0f450219b667ec5f8d951b0c41593c7b983e2ada.tar.gz |
Remove most "-o filenames" options to "complete".
Turn it on dynamically when needed instead; see doc/styleguide.txt for
a longer explanation. This fixes many non-filename completions which
had been previously more or less broken due to unwanted
escape-as-filenames behavior.
Diffstat (limited to 'completions/postfix')
-rw-r--r-- | completions/postfix | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/completions/postfix b/completions/postfix index d9de61dc..1311c987 100644 --- a/completions/postfix +++ b/completions/postfix @@ -29,7 +29,7 @@ _postfix() COMPREPLY=( $( compgen -W 'check start stop abort flush reload status \ set-permissions upgrade-configuration' -- "$cur" ) ) } -complete -F _postfix -o filenames postfix +complete -F _postfix postfix # postalias(1) and postmap(1) # @@ -57,6 +57,7 @@ _postmap() fi if [[ "$cur" == *:* ]]; then + _compopt_o_filenames COMPREPLY=( $( compgen -f -- "${cur#*:}" ) ) else len=${#cur} @@ -68,12 +69,13 @@ _postmap() fi done if [[ $idx -eq 0 ]]; then + _compopt_o_filenames COMPREPLY=( $( compgen -f -- "$cur" ) ) fi fi return 0 } -complete -F _postmap -o filenames postmap postalias +complete -F _postmap postmap postalias # postcat(1) # @@ -116,7 +118,7 @@ _postcat() return 0 fi } -complete -F _postcat -o filenames postcat +complete -F _postcat postcat # postconf(1) # @@ -158,7 +160,7 @@ _postconf() done return 0 } -complete -F _postconf -o filenames postconf +complete -F _postconf postconf # postsuper(1) # @@ -219,7 +221,7 @@ _postsuper() COMPREPLY=( $( compgen -W 'hold incoming active deferred' -- "$cur" ) ) } -complete -F _postsuper -o filenames postsuper +complete -F _postsuper postsuper } # Local variables: |