diff options
Diffstat (limited to 'completions/jps')
-rw-r--r-- | completions/jps | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/completions/jps b/completions/jps index a6a60299..a451eec1 100644 --- a/completions/jps +++ b/completions/jps @@ -6,7 +6,7 @@ _jps() _init_completion || return case $prev in - -J*|-help) + -J* | -help) return ;; esac @@ -14,12 +14,12 @@ _jps() 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") ) - [[ $COMPREPLY == -J* ]] && compopt -o nospace + COMPREPLY=($(compgen -W "-q -m -l -v -V -J -help" -- "$cur")) + [[ ${COMPREPLY-} == -J* ]] && compopt -o nospace else _known_hosts_real -- "$cur" fi } && -complete -F _jps jps + complete -F _jps jps # ex: filetype=sh |