mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-21 07:43:08 +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
04c068e514
commit
1f2c5bfed7
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) )
|
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()
|
_task()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue