summaryrefslogtreecommitdiff
path: root/completions/xsltproc
diff options
context:
space:
mode:
Diffstat (limited to 'completions/xsltproc')
-rw-r--r--completions/xsltproc18
1 files changed, 9 insertions, 9 deletions
diff --git a/completions/xsltproc b/completions/xsltproc
index dbe68c45..4cb70719 100644
--- a/completions/xsltproc
+++ b/completions/xsltproc
@@ -6,7 +6,7 @@ _xsltproc()
_init_completion || return
case $prev in
- --output|-o)
+ --output | -o)
_filedir
return
;;
@@ -16,11 +16,11 @@ _xsltproc()
;;
--encoding)
# some aliases removed
- COMPREPLY=( $(compgen -X '@(UTF[1378]|8859|ISO[0-9_])*' \
- -W "$(iconv -l | command sed -e 's/\/.*//')" -- "$cur") )
+ COMPREPLY=($(compgen -X '@(UTF[1378]|8859|ISO[0-9_])*' \
+ -W "$(iconv -l | command sed -e 's/\/.*//')" -- "$cur"))
return
;;
- --param|--stringparam)
+ --param | --stringparam)
return
;;
# not really like --writesubtree
@@ -34,16 +34,16 @@ _xsltproc()
;;
esac
- [[ $cword -gt 2 && `_get_cword '' 2` == --?(string)param ]] && return
+ [[ $cword -gt 2 && $(_get_cword '' 2) == --?(string)param ]] && return
- if [[ "$cur" == -* ]]; then
- COMPREPLY=( $(compgen -W '$(_parse_help "$1")' -- "$cur") )
- COMPREPLY=( "${COMPREPLY[@]%:}" )
+ if [[ $cur == -* ]]; then
+ COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur"))
+ COMPREPLY=("${COMPREPLY[@]%:}")
else
# TODO: 1st file xsl|xslt, 2nd XML
_filedir '@(xsl|xslt|xml|dbk|docbook|page)'
fi
} &&
-complete -F _xsltproc xsltproc
+ complete -F _xsltproc xsltproc
# ex: filetype=sh