WiP: 'function' is a bash-ism