[PATCH] Permit `--search=…` in `-Q` and `-S` to allow for e.g. `--search=-doc`
Greetings pacman-dev: Currently, pacman does not allow one to run `pacman -S --search=-doc`, because despite documentation saying `--search` takes `<regexp>`, actually it is implemented as using the targets to determine what to search for. It is quite difficult to figure out how to carry out this search query, and needlessly so, though `--search '\\-doc'` does work. The cumulative effect of the two attached patches fixes it, allowing an easier way to search for arbitrary strings which may conflict with command line options. -- Best, Fred Brennan [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] GnuPG: 6F12 EC72 A82A BCA3 5235 063A 10DD C983 901A A183 Twitter: @fr_brennan Personal website <https://dba.gg/>
On 11/20/21 at 08:50pm, Fredrick Brennan wrote:
Greetings pacman-dev:
Currently, pacman does not allow one to run `pacman -S --search=-doc`, because despite documentation saying `--search` takes `<regexp>`, actually it is implemented as using the targets to determine what to search for.
It is quite difficult to figure out how to carry out this search query, and needlessly so, though `--search '\\-doc'` does work.
The cumulative effect of the two attached patches fixes it, allowing an easier way to search for arbitrary strings which may conflict with command line options.
The documentation for --search could use clarification, but this is unnecessary. pacman respects the standard option terminator -- pacman -Ss -- -doc
participants (2)
-
Andrew Gregory
-
Fredrick Brennan