diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 01:03:19 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 01:03:19 +0000 |
commit | 6c09f2a45c5541e9c207d14fc7aa21a4a0066bde (patch) | |
tree | 0221189d367bf661f6f9493c4f17a03f0dd4b7d2 /completions/postmap | |
parent | Releasing progress-linux version 1:2.11-8~progress7.99u1. (diff) | |
download | bash-completion-6c09f2a45c5541e9c207d14fc7aa21a4a0066bde.tar.xz bash-completion-6c09f2a45c5541e9c207d14fc7aa21a4a0066bde.zip |
Merging upstream version 1:2.12.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'completions/postmap')
-rw-r--r-- | completions/postmap | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/completions/postmap b/completions/postmap index 35c4ada..48e5d9f 100644 --- a/completions/postmap +++ b/completions/postmap @@ -1,13 +1,13 @@ # postalias(1) and postmap(1) completion -*- shell-script -*- -_postmap() +_comp_cmd_postmap() { - local cur prev words cword - _init_completion || return + local cur prev words cword comp_args + _comp_initialize -- "$@" || return case $prev in -c) - _filedir -d + _comp_compgen_filedir -d return ;; -[dq]) @@ -16,13 +16,13 @@ _postmap() esac if [[ $cur == -* ]]; then - COMPREPLY=($(compgen -W '$(_parse_usage "$1")' -- "$cur")) + _comp_compgen_usage return fi if [[ $cur == *:* ]]; then compopt -o filenames - COMPREPLY=($(compgen -f -- "${cur#*:}")) + _comp_compgen -c "${cur#*:}" -- -f else local len=${#cur} pval for pval in $(/usr/sbin/postconf -m 2>/dev/null); do @@ -32,10 +32,10 @@ _postmap() done if [[ ! ${COMPREPLY-} ]]; then compopt -o filenames - COMPREPLY=($(compgen -f -- "$cur")) + _comp_compgen -- -f fi fi } && - complete -F _postmap postmap postalias + complete -F _comp_cmd_postmap postmap postalias # ex: filetype=sh |