summaryrefslogtreecommitdiff
path: root/completions/gprof
diff options
context:
space:
mode:
Diffstat (limited to 'completions/gprof')
-rw-r--r--completions/gprof22
1 files changed, 11 insertions, 11 deletions
diff --git a/completions/gprof b/completions/gprof
index 40a74820..5a4ab2d4 100644
--- a/completions/gprof
+++ b/completions/gprof
@@ -6,37 +6,37 @@ _gprof()
_init_completion -s || return
case $cur in
- -A*|-C*|-J*|-p*|-P*|-q*|-Q*|-n*|-N*|-d*)
+ -A* | -C* | -J* | -p* | -P* | -q* | -Q* | -n* | -N* | -d*)
return
;;
-S*)
cur=${cur:2}
_filedir
- COMPREPLY=( "${COMPREPLY[@]/#/-S}" )
+ COMPREPLY=("${COMPREPLY[@]/#/-S}")
return
;;
-O*)
cur=${cur:2}
- COMPREPLY=( $(compgen -P -O -W 'auto bsd 4.4bsd magic prof' \
- -- "$cur") )
+ COMPREPLY=($(compgen -P -O -W 'auto bsd 4.4bsd magic prof' \
+ -- "$cur"))
return
;;
esac
case $prev in
- -I|--directory-path)
+ -I | --directory-path)
_filedir -d
return
;;
- -R|--file-ordering|--external-symbol-table)
+ -R | --file-ordering | --external-symbol-table)
_filedir
return
;;
- -w|--width|-k|-m|--min-count|-h|--help|-e|-E|-f|-F)
+ -w | --width | -k | -m | --min-count | -h | --help | -e | -E | -f | -F)
return
;;
--file-format)
- COMPREPLY=( $(compgen -W 'auto bsd 4.4bsd magic prof' -- "$cur") )
+ COMPREPLY=($(compgen -W 'auto bsd 4.4bsd magic prof' -- "$cur"))
return
;;
esac
@@ -44,13 +44,13 @@ _gprof()
$split && return
if [[ $cur == -* ]]; then
- COMPREPLY=( $(compgen -W '$(_parse_usage "$1")' -- "$cur") )
- [[ $COMPREPLY == *= ]] && compopt -o nospace
+ COMPREPLY=($(compgen -W '$(_parse_usage "$1")' -- "$cur"))
+ [[ ${COMPREPLY-} == *= ]] && compopt -o nospace
return
fi
_filedir
} &&
-complete -F _gprof gprof
+ complete -F _gprof gprof
# ex: filetype=sh