Quantcast
Channel: Pacman issues
Viewing all articles
Browse latest Browse all 109

Document regular expression flavour (POSIX extended?)

$
0
0
[`man pacman`](https://gitlab.archlinux.org/pacman/pacman/-/blob/f343db5b8e979e19c3b897f69465d1a1fa7a42aa/doc/pacman.8.asciidoc) mentions "regex" 6 times, but there’s no mention anywhere of what regular expression syntax is expected. Based on `#include ` I assume it’s standard C POSIX library regex, and I think `|` is a union operator meaning the `REG_EXTENDED` flag is set, so `pacman` is using POSIX extended regular expressions? Would be nice to have this mentioned this somewhere. :smile: (And maybe also a note that regular expressions are case insensitive (`REG_ICASE`) and that newlines are treated specially (`REG_NEWLINE`).)

Viewing all articles
Browse latest Browse all 109

Trending Articles