mirror of
https://github.com/go-task/task.git
synced 2025-07-15 01:35:00 +02:00
Don't let grep treat the search pattern as an option
This commit is contained in:
@ -15,7 +15,7 @@ _task_completion()
|
||||
return
|
||||
fi
|
||||
|
||||
COMPREPLY=($(compgen -c | echo "$scripts" | grep $curr_arg));
|
||||
COMPREPLY=($(compgen -c | echo "$scripts" | grep -- $curr_arg));
|
||||
}
|
||||
|
||||
complete -F _task_completion task
|
||||
|
Reference in New Issue
Block a user