3.21.9.0 and above contain a change that removed the filename which triggered the event when watching single files. The upstream bug report is at https://github.com/inotify-tools/inotify-tools/issues/157 and an incomplete pull request to fix it is at https://github.com/inotify-tools/inotify-tools/pull/159. `inotifywait -q foo bar` only outputs ` OPEN` when either file is opened, while 3.20.11.0 and below would output `bar OPEN` when bar is opened.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b524fba9fcd3394fff8cc35a20ef3d831f4f1c77 commit b524fba9fcd3394fff8cc35a20ef3d831f4f1c77 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-01-15 01:56:11 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-01-15 01:56:15 +0000 sys-fs/inotify-tools: destabilize 3.21.9.6 Reported regression. Bug: https://bugs.gentoo.org/831216 Bug: https://bugs.gentoo.org/830136 Signed-off-by: Sam James <sam@gentoo.org> sys-fs/inotify-tools/inotify-tools-3.21.9.6.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
This issue is fixed in https://github.com/inotify-tools/inotify-tools/releases/tag/3.22.1.0.
(In reply to Brand Huntsman from comment #2) > This issue is fixed in > https://github.com/inotify-tools/inotify-tools/releases/tag/3.22.1.0. Thanks, I guess nothing for me to do here then.