--metadata lexicographical comparisons
Change --metadata comparisons < > <= and >= to fall back to lexicographical comparisons when one or both values being compared are not numbers. Sponsored-by: Erik Bjäreholt on Patreon
This commit is contained in:
parent
69499b4452
commit
aa6919737c
4 changed files with 27 additions and 11 deletions
|
@ -142,11 +142,15 @@ in either of two repositories.
|
|||
matches the glob. The values of metadata fields are matched case
|
||||
insensitively.
|
||||
|
||||
* `--metadata field<number` / `--metadata field>number`
|
||||
* `--metadata field<=number` / `--metadata field>=number`
|
||||
* `--metadata field<value` / `--metadata field>value`
|
||||
* `--metadata field<=value` / `--metadata field>=value`
|
||||
|
||||
Matches only when there is a metadata field attached with a value that
|
||||
is a number and is less than or greater than the specified number.
|
||||
Matches only when there is a metadata field attached with a value
|
||||
that is less then or greater than the specified value, respectively.
|
||||
|
||||
When both values are numbers, the comparison is done numerically.
|
||||
When one value is not a number, the values are instead compared
|
||||
lexicographically.
|
||||
|
||||
(Note that you will need to quote the second parameter to avoid
|
||||
the shell doing redirection.)
|
||||
|
|
|
@ -91,3 +91,5 @@ file9
|
|||
```
|
||||
|
||||
Yann / @nobodyinperson
|
||||
|
||||
> [[fixed|done]] --[[Joey]]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue