Life without ack
• 154 words • 1 min • updated
⚠️ This post is over one year old. It may no longer be up to date or relevant. Opinions may have changed.
Every macOS upgrade comes with disappointment and sorrow in the form of some tool, dependency / library or system-wide configuration breaking1.
This time: the upgrade to macOS Sequoia (15.0) broke ack (Perl).
% ack
zsh: /opt/homebrew/bin/ack: bad interpreter: /usr/bin/perl5.30: no such file or directoryI desperately needed to use ack, however there was no internet connection. And
I didn’t have any of its alternatives installed (e.g. ag, ripgrep / rg).
Then the best way is to fall back to good ol’ grep2:
% grep [-l] '\bref\b' **/*Alternatively, within a git repository, there is git grep:
% git grep [-l] '\bref\b'With git grep there is no need to specify which files to grep, as it entails
all files that belong to the repository…which happens to be a caveat for newly
created files that were not yet git add-ed.
Backlinks
- bad interpreter: perl: no such file or directory (Jun 08, 2025)