GNU find on MacOS
<p>I've downloaded the GNU version of <code>find</code> with homebrew:</p>

<pre><code>brew install findutils --with-default-names
</code></pre>

<p>When I run <code>which</code> on <code>find</code> I get what I expect:</p>

<pre><code>$ which find
/usr/local/bin/find
</code></pre>

<p>However, when I use <code>find</code>, the system falls back to OS X default <code>/usr/bin/find</code>, i.e.:</p>

<pre><code>$ find -exec file {} \;
find: illegal option -- e
usage: find [-H | -L | -P] [-EXdsx] [-f path] path ... [expression]
       find [-H | -L | -P] [-EXdsx] -f path [path ...] [expression]

$ /usr/local/bin/find -exec file {} \;
.: directory
</code></pre>

<p>Why is this happening and how can I get <code>find</code> to work properly?</p>