mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Scripts: Quoted regular expression to avoid bash glob expansion
The quote is needed, otherwise it is treated as a bash glob first, which causes trouble if there actually happens to be matching files, and fails entirely if `shopt -s failglob` is set.
This commit is contained in:
parent
4b62bf816c
commit
661ce5888f
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ _task_offer_contexts() {
|
|||
COMPREPLY=( $(compgen -W "$($taskcommand _context) define delete list none show" -- $cur) )
|
||||
}
|
||||
|
||||
_task_context_alias=$($taskcommand show | grep alias.*context | cut -d' ' -f1 | cut -d. -f2)
|
||||
_task_context_alias=$($taskcommand show | grep 'alias.*context' | cut -d' ' -f1 | cut -d. -f2)
|
||||
|
||||
_task()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue