1
0
mirror of https://github.com/go-task/task.git synced 2025-03-19 21:17:46 +02:00

Don't let grep treat the search pattern as an option

This commit is contained in:
Alexander Beyn 2021-08-07 02:28:52 -07:00
parent ad05432bcf
commit aae38f8ce7

View File

@ -15,7 +15,7 @@ _task_completion()
return return
fi fi
COMPREPLY=($(compgen -c | echo "$scripts" | grep $curr_arg)); COMPREPLY=($(compgen -c | echo "$scripts" | grep -- $curr_arg));
} }
complete -F _task_completion task complete -F _task_completion task