Fix OSX “dyld: Library not loaded”

I’m using OSX Mojave with zsh and all of sudden I always got an error when opening a new terminal session after doing an upgrade.

dyld: Library not loaded: /usr/local/opt/readline/lib/libreadline.7.dylib
Referenced from: /usr/local/bin/awk
Reason: image not found

Seems like there’s an error from awk and I found the solution by upgrading gawk

$ brew upgrade gawk