Bug#1129270: Error: Regex compilation error
David Kalnischkies <[email protected]> Sun, 1 Mar 2026 10:50:55 +0100
| Newsgroups | gmane.linux.debian.apt.devel |
|---|---|
| Message-ID | <aaQJZHba67ItqhGC__5833.03081091202$1772359428$gmane$org@gosurf.lan> |
Am Sun, Mar 01, 2026 at 01:32:28AM +0800, schrieb Dan Jacobson:
> All I know is the short form works fine
> $ apt search ~g
This search works because '~g' is a valid regex (without any special
regex syntax like '?') and lo and behold, it works as documented:
```
$ apt-cache show python-yarl-doc python3-yarl wmpuzzle | grep -e '^Package:' -e '~g'
Package: python-yarl-doc
>>> url = URL('https://www.python.org/~guido?arg=1#frag')
URL('https://www.python.org/~guido?arg=1#frag')
'/~guido'
Package: python3-yarl
>>> url = URL('https://www.python.org/~guido?arg=1#frag')
URL('https://www.python.org/~guido?arg=1#frag')
'/~guido'
Package: wmpuzzle
http://people.debian.org/~godisch/wmpuzzle/.
```
So your search successfully searched for the string '~g' and found
some packages where the description contains that string.
This is not at all the same as what the '~g' pattern would result
in IF it would be interpreted by search. Compare:
```
$ apt search ~g
python-yarl-doc/unstable,unstable,testing,testing 1.22.0-1 all
documentation for the yarl Python library
python3-yarl/unstable,testing 1.22.0-1+b1 amd64
yet another URL library for Python
wmpuzzle/unstable,testing 0.5.3-1 amd64
WindowMaker-Dock-App: 4x4 Puzzle
$ apt list ~g
$
```
Best regards
David Kalnischkies
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE5sn+Q4uCja/tn0GrMRvlz3HQeIMFAmmkC/8ACgkQMRvlz3HQ eIMqoQ/+JdEW+gS2W2AxmOnSAE3WlbgHAzNrR32LUo7aPjwNzlEP09II1mCI2wtK TI5mxpjIFU9NFVgQzav0FRuonogJvR46zWfl1OLQ1EnTsPiRtLUc+XJ4DUNxuinE X9oVuKYxNO3StqRRiIzZnqofd7Kr+xLZPPVPMmDQh7ycldJa9Kd/NeVFuxK7pfue LxPVV4HRK1YIgbIAdt7hmPNcnHEVjILkVkvDm96NB+o9RvEZ0aLOM5LdMSVVQ2Sv GbVPj9bkYwn3fHxrVELFPvOi0Vlnow5qhIthyEybfL1cYW+yqa723HzaZOkaJG/j t/pH4aI0vBv2jZGFZdSyB2eAhKg0TQQoI9hx9vX39JP09oK16gbAOXbIlve47pxT /NitoCHyXRwWf/5iJyRnwmE5cVn4oHJu86ZvfE4+upSsJDG3za1ER+tZK419iqcP biaXzu8rRcw8eNQiCQx7fnSI331ce2GjOhgWLQYCsKUV9oxFTEBlj0T/jvpT4G1X oLTYERaRqWDB44fBy2Q8+21wM31fc4GzO/GJxm1zLHRFTrXDQDo88LbzOMSYyzjJ wqVwmTPuSfq1N92/l+SaIsHknQq3jxuQv2vAbV5stluaz1GxM/ONOqpR88c9rwiC 7QvTMvl5cNC2fT19omoQSi9OP0Xy9yIEC93E/cpMWjvdHWiMbVA= =UNgE -----END PGP SIGNATURE-----