"David G. Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> writes:
> I'm using Ubuntu 16.04
Hmph. Works for me on RHEL6. I'm betting that Ubuntu has put in some
weird security restriction, possibly an overreaction to the "shellshock"
bug which was in the exported-functions feature.
regards, tom lane