<!DOCTYPE html>

<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="content-type"/>
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
</head>
<body style="font-family: Lato, Calibri, Tahoma, sans-serif; max-width: 32em">
<p style="text-align: justify; text-justify: auto">Package: inotify-hookable<br/>
Version: 0.09-2<br/>
Severity: normal<br/>
File: /usr/bin/inotify-hookable</p>
<p style="text-align: justify; text-justify: auto">The manpage says:</p>
<blockquote style="padding: 0 0.5em; margin: 0; font-style: italic; border-left: 2px solid #666">
<p style="text-align: justify; text-justify: auto"><strong>“-i” or “–ignore-paths”</strong><br/>
  Regexes for files/directories to ignore events for. By default this   is set to regexes for vim and emacs temporary files, “qr{..*sw.\z}”   and “qr{.#[^/]+\z}” respectively.</p>
<p style="text-align: justify; text-justify: auto">The regexes match after any “/” in the path or the beginning of the   string.</p>
</blockquote>
<p style="text-align: justify; text-justify: auto">I want to ignore files under <code>.mypy_cache</code>, <code>.ruff_cache</code>, and <code>.pytest_cache</code>, and so I tried:</p>
<div class="codehilite" style="background: #f8f8f8"><pre style="line-height: 125%"><span></span><code>inotify-hookable -d -w . -i '\..+_cache' -C '.+\.py$=pytest -s'
</code></pre></div>
<p style="text-align: justify; text-justify: auto">and also every other combination of regexp I could think of, including the use of <code>qr{}</code> and even just <code>.*</code>, but none of these seem to have any effect, leading me to believe that <code>-i</code> is broken, or very wrongly documented.</p>
<p style="text-align: justify; text-justify: auto">Thanks for looking into this!</p>
<p style="text-align: justify; text-justify: auto">– System Information:<br/>
Debian Release: trixie/sid<br/>
  APT prefers unstable<br/>
  APT policy: (500, ‘unstable’), (1, ‘experimental’)<br/>
Architecture: amd64 (x86_64)</p>
<p style="text-align: justify; text-justify: auto">Kernel: Linux 6.12.25-amd64 (SMP w/16 CPU threads; PREEMPT)<br/>
Locale: LANG=en_NZ, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8), LANGUAGE=en_NZ:en<br/>
Shell: /bin/sh linked to /usr/bin/dash<br/>
Init: systemd (via /run/systemd/system)<br/>
LSM: AppArmor: enabled</p>
<p style="text-align: justify; text-justify: auto">Versions of packages inotify-hookable depends on:<br/>
ii  libclass-inspector-perl  1.36-3<br/>
ii  libdata-bitmask-perl     1.00-1<br/>
ii  liblinux-inotify2-perl   1:2.3-2+b3<br/>
ii  liblist-moreutils-perl   0.430-2<br/>
ii  libmoose-perl            2.2207-1+b3<br/>
ii  libmoosex-getopt-perl    0.78-1<br/>
ii  libmoosex-types-perl     0.51-4<br/>
ii  libtry-tiny-perl         0.32-1<br/>
ii  perl                     5.40.1-3</p>
<p style="text-align: justify; text-justify: auto">inotify-hookable recommends no packages.</p>
<p style="text-align: justify; text-justify: auto">inotify-hookable suggests no packages.</p>
<p style="text-align: justify; text-justify: auto">– debconf-show failed</p>
<div id="signature" style="font-family: Lato, Calibri, Tahoma, sans-serif; max-width: 32em"><span class="sig_separator" style="display: none">-- </span>
<dl>
<dt>.’‘`.   martin f. krafft <a href="mailto:madduck@d.o">madduck@d.o</a></dt>
<dd>:’  :  proud Debian developer<br/>
<code>.</code>‘<code>http://people.debian.org/~madduck</code>-  Debian - when you have better things to do than fixing systems</dd>
</dl>
</div>
</body>
</html>