summaryrefslogtreecommitdiff
path: root/completions/jps
diff options
context:
space:
mode:
authorGabriel F. T. Gomes <gabriel@inconstante.net.br>2020-08-03 18:43:13 -0300
committerGabriel F. T. Gomes <gabriel@inconstante.net.br>2020-08-03 18:43:13 -0300
commit95623d39d6029ba78ec96ad5ea08e9ac12629b91 (patch)
treeea0fe36eb5e6f40e0a1f765d44c4b0c0b2bfb089 /completions/jps
parent019f3cc463db63abc6460f97deb488deec43840b (diff)
downloadbash-completion-upstream.tar.gz
New upstream version 2.11upstream/2.11upstream
Diffstat (limited to 'completions/jps')
-rw-r--r--completions/jps8
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