diff options
Diffstat (limited to 'completions/javaws')
-rw-r--r-- | completions/javaws | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/completions/javaws b/completions/javaws index c21d3ac4..f42a1e55 100644 --- a/completions/javaws +++ b/completions/javaws @@ -6,14 +6,14 @@ _javaws() _init_completion -n = || return case $prev in - -help|-license|-about|-viewer|-arg|-param|-property|-update|-umask) + -help | -license | -about | -viewer | -arg | -param | -property | -update | -umask) return ;; - -basedir|-codebase) + -basedir | -codebase) _filedir -d return ;; - -uninstall|-import) + -uninstall | -import) _filedir jnlp return ;; @@ -22,13 +22,13 @@ _javaws() if [[ $cur == *= ]]; then return elif [[ $cur == -* ]]; then - COMPREPLY=( $(compgen -W "$(_parse_help "$1" -help) " -- "$cur") ) - [[ $COMPREPLY == *= ]] && compopt -o nospace + COMPREPLY=($(compgen -W "$(_parse_help "$1" -help) " -- "$cur")) + [[ ${COMPREPLY-} == *= ]] && compopt -o nospace return fi _filedir jnlp } && -complete -F _javaws javaws + complete -F _javaws javaws # ex: filetype=sh |