GothenburgBitFactory / GothenburgBitFactory/taskwarrior
Filter with locical expressions does not work
- Dominant language
- C++
- Stars
- 6.1k
- Forks
- 423
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 11
Description
#### To report a bug...
If I use two filters, I would assume that the logical or expression would have as result the join of both expressions.
* What command(s) did you run?
1st command:
```
task "+asap" count
399
```
2nd command:
```
task "project:Weekend" count
91
```
3rd command:
```
task "project:Weekend or +asap" count
0
```
4th command:
```
task "+asap or project:Weekend" count
468
```
* What did you expect to happen?
1. I would assume that 3rd and 4th command give the same result.
2. I would assume that 3rd command would not result in zero count. Instead, it should be at least the maximum of command 1 and command 2.
* What actually happened?
The result depends on the order of the two arguments (math: Commutative law).
* Paste the output of the ```task diag``` command.
```task 2.6.2
Platform: Linux
Compiler
Version: 13.1.1 20230429
Caps: +stdc +stdc_hosted +LP64 +c8 +i32 +l64 +vp64 +time_t64
Compliance: C++17
Build Features
CMake: 3.26.3
libuuid: libuuid + uuid_unparse_lower
libgnutls: 3.8.0
Build type:
Configuration
File: /home/people/XXX/.taskrc (found), 2786 bytes, mode 100644
Data: /home/people/XXX/.task (found), dir, mode 40755
Locking: Enabled
GC: Enabled
Hooks
System: Enabled
Location: /home/people/XXX/.task/hooks
(-none-)
Tests
Terminal: 220x64
Dups: Scanned 1406 tasks for duplicate UUIDs:
No duplicates found
Broken ref: Scanned 1406 tasks for broken references:
No broken references found
```
Contributor guide
Assessment
This issue has not been assessed yet.