/bin/sh: line 2: `BASH_FUNC_ttr%%': not a valid identifier

Mathias Laurin mathias.laurin at gmail.com
Fri Oct 10 04:19:13 PDT 2014


> Wouldn't the stopping of function export from MacPorts' bash be a big restriction on bash use. For example, I want to be able to type "mvim", with or without parameters, to open a MacVim window. At present, I get the error:
> "/bin/sh: line 8: `BASH_FUNC_usenosql%%': not a valid identifier". Would not the prevention of function export prevent me from opening a MacVim window?


What about setting the shebang in mvim to the version of bash
you are actually using?

Or maybe to:

#!/usr/bin/env -i /bin/sh


Mathias



More information about the macports-users mailing list