From f2621414ee5f2f601424c22f00e207903e3b6104 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 4 May 2024 03:03:18 +0200 Subject: Merging upstream version 1:2.12.0. Signed-off-by: Daniel Baumann --- completions/jps | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'completions/jps') diff --git a/completions/jps b/completions/jps index a451eec..324ba0e 100644 --- a/completions/jps +++ b/completions/jps @@ -1,9 +1,9 @@ # jps(1) completion -*- shell-script -*- -_jps() +_comp_cmd_jps() { - local cur prev words cword - _init_completion || return + local cur prev words cword comp_args + _comp_initialize -- "$@" || return case $prev in -J* | -help) @@ -12,14 +12,14 @@ _jps() esac if [[ $cur == -* ]]; then - # Not using _parse_usage because output has [-help] which does not - # mean -h, -e, -l, -p... - COMPREPLY=($(compgen -W "-q -m -l -v -V -J -help" -- "$cur")) + # Not using _comp_compgen_usage because output has [-help] which does + # not mean -h, -e, -l, -p... + _comp_compgen -- -W "-q -m -l -v -V -J -help" [[ ${COMPREPLY-} == -J* ]] && compopt -o nospace else - _known_hosts_real -- "$cur" + _comp_compgen_known_hosts -- "$cur" fi } && - complete -F _jps jps + complete -F _comp_cmd_jps jps # ex: filetype=sh -- cgit v1.2.3