Fish didn't support `$(...)` substitution until v3.4.0, but the command didn't work with just parenthesis, so rewrite the test to prepend an empty string if MANPATH is non-empty (to trigger a leading colon). Only manipulate INFOPATH in Fish if Homebrew not in path already.
Library
This directory contains all the code run by the official brew command in Homebrew and all formulae (package descriptions) in taps (repositories containing formulae) in Taps subdirectories.