#4869·fzf

Bugged fuzzy search with OR

Author: stderr-to-devnullCreated Jul 22, 2026Updated Jul 23, 2026

Checklist

  • I have read through the manual page (man fzf)
  • I have searched through the existing issues
  • For bug reports, I have checked if the bug is reproducible in the latest version of fzf

Output of fzf --version

0.74.1

OS

  • Linux
  • macOS
  • Windows
  • Etc.

Shell

  • bash
  • zsh
  • fish

Problem / Steps to reproduce

piping bat plaint-text mode with highlighting into fzf --raw --ansi --exact

Searching by failed | lock file with the intent to: find lines containing failed OR (lines containing lock AND file), as seen below, only the part after | is matched and highlighted, only 3rd line, not all 3:

The only way of achieving match for all 3 lines is to use failed | lock 'file. This is unintuitive and inconsistent with the way it is supposed to work, as explained in the docs.