<p><pre><code>  fnmatch () { case &quot;$2&quot; in $1) return 0 ;; *) return 1 ;; esac ; }
  So much for needing Bash’s “[[” command...
</code></pre>
I&#x27;ve bookmarked this article. However, I think the author advocates too strongly for custom functions which &quot;know better&quot; than native functionality. It seems to be written more for the situation of &quot;my personal shell scripts&quot; than a &quot;codebase&quot;. I wouldn&#x27;t, for example, want to work in a codebase where people have redefined `echo` using the shell function he suggests. With a different name, perhaps.