bash weirdness


This is just odd. Tell me how this functionality could be useful:

   $ export testf='() { echo test; }'
   $ bash
   $ testf
   test

In ten years I’ve never thought “Boy, I wish I could import shell functions
from my environment upon invocation”, but maybe I’m missing something obvious.


One response to “bash weirdness”