title: Zsh | `brew list | {any command}` raises uncaught signal PIPE error
body: <p>On an MacOS Big Sur machine, running a <code>zsh</code> console running the following command:</p>
  <pre><code>brew list | grep -q some-library
  </code></pre>
  <p>raises the following error:</p>
  <pre><code>Error: Failure while executing; `ls /usr/local/Cellar` was terminated by uncaught signal PIPE.
  </code></pre>
  <p>Running the same command on a Mojave macbook does not yield an error. This appears to happen with any brew list | {command} as the following also raises the error:</p>
  <pre><code>brew list | echo 'hi' 
  </code></pre>
  <p>I've restored my brew incase something was broken but that has not changed anything. Any ideas as to why I am seeing this error?</p>
  <p>Update: This appears to be happening due in <code>zsh</code> consoles</p>