summaryrefslogtreecommitdiff
path: root/completions/crontab
diff options
context:
space:
mode:
Diffstat (limited to 'completions/crontab')
-rw-r--r--completions/crontab6
1 files changed, 3 insertions, 3 deletions
diff --git a/completions/crontab b/completions/crontab
index bb8d0e24..a5e5cc58 100644
--- a/completions/crontab
+++ b/completions/crontab
@@ -6,7 +6,7 @@ _crontab()
_init_completion || return
case $prev in
- -u)
+ -*u)
_allowed_users
return
;;
@@ -36,12 +36,12 @@ _crontab()
done
if [[ "$cur" == -* ]]; then
- COMPREPLY=( $( compgen -W '${!opts[@]}' -- "$cur" ) )
+ COMPREPLY=( $(compgen -W '${!opts[@]}' -- "$cur") )
return
fi
# do filenames only if we did not have -l, -r, or -e
- [[ "${words[@]}" == *\ -[lre]* ]] || _filedir
+ [[ "${words[*]}" == *\ -[lre]* ]] || _filedir
} &&
complete -F _crontab crontab