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.
Comments 1
This may be less a feature than just a side effect of the shell function implementation.
Posted 03 Jan 2005 at 1:08 pm ¶