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
