Open yohannd1 opened 2 years ago
After some debugging I've noticed that the command that fails (the second one) is being called as so:
['task', 'rc.confirmation=no', 'rc.dependency.confirmation=no', 'rc.recurrence.confirmation=no', 'rc.json.array=off', 'rc.bulk=0', 'rc.data.location=/home/yohanan/_sample_data', 'status:pending +habit', 'export']
I've went and tried this command out and noticed that sending the whole "status:pending +habit"
as a single argument doesn't seem to work on taskwarrior, instead requiring each condition to be a whole different argument or the entire single argument to be wrapped by parenthesis.
So: task status:pending +habit
and task "(status:pending +habit)"
both work but task "status:pending +habit"
doesn't.
I'm not sure how this should be tackled on tasklib (maybe it has been tackled before but something went wrong). Since task "(status:pending +habit)"
works fine, maybe we could just add parenthesis if the query has parenthesis? I'm not sure if that solves the problem completely.
Let's say I have a task folder in
~/_sample_data
. The output ofunset TASKRC; task rc.data.location=~/_sample_data
is (removing the "configuration override" notes):I then tried to use it this way:
The shown output is then:
But what was expected:
It seems like only raw filters that have more than one condition are affected by this.