[PATCH] Permit `--search=…` in `-Q` and `-S` to allow for e.g. `--search=-doc`
Andrew Gregory
andrew.gregory.8 at gmail.com
Sun Nov 21 18:12:18 UTC 2021
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
More information about the pacman-dev
mailing list