[PATCH] Permit `--search=…` in `-Q` and `-S` to allow for e.g. `--search=-doc`

Fredrick Brennan copypaste at kittens.ph
Sun Nov 21 01:50:29 UTC 2021


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/>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Make-checkargs_-accept-global-parse-state.patch
Type: text/x-patch
Size: 4442 bytes
Desc: not available
URL: <https://lists.archlinux.org/pipermail/pacman-dev/attachments/20211120/d917fbf5/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Permit-search-in-Q-and-S.patch
Type: text/x-patch
Size: 2821 bytes
Desc: not available
URL: <https://lists.archlinux.org/pipermail/pacman-dev/attachments/20211120/d917fbf5/attachment-0001.bin>


More information about the pacman-dev mailing list