summaryrefslogtreecommitdiff
path: root/completions/gcl
diff options
context:
space:
mode:
Diffstat (limited to 'completions/gcl')
-rw-r--r--completions/gcl8
1 files changed, 4 insertions, 4 deletions
diff --git a/completions/gcl b/completions/gcl
index 9acc813d..73a18b2d 100644
--- a/completions/gcl
+++ b/completions/gcl
@@ -8,14 +8,14 @@ _gcl()
_init_completion || return
# completing an option (may or may not be separated by a space)
- if [[ "$cur" == -* ]]; then
- COMPREPLY=( $(compgen -W '-eval -load -f -batch -dir -libdir -compile
- -o-file -c-file -h-file -data-file -system-p' -- "$cur") )
+ if [[ $cur == -* ]]; then
+ COMPREPLY=($(compgen -W '-eval -load -f -batch -dir -libdir -compile
+ -o-file -c-file -h-file -data-file -system-p' -- "$cur"))
else
_filedir
fi
} &&
-complete -F _gcl -o default gcl
+ complete -F _gcl -o default gcl
# ex: filetype=sh