I encountered this error when updating bash for the CVE-2014-6271 security issue:# yum update bashRunning transaction (shutdown inhibited)Updating   : bash-4.2.47-4.fc20.x86_64/bin/sh: error importing function definition for `some-function'
/bin/sh: error importing function definition for `some-function'
bash;shell;function
[edited after 1st comment from: @chepner - thanks!]/bin/bash allows hyphens in function names, /bin/sh (Bourne shell) does not.Here, the offending some-function had been exported by bash, and bash called yum which called /bin/sh which reported the error above.fix: rename shell functions to not have hyphens man bash says that bash identifiers may consist:only of alphanumeric characters and underscores The /bin/sh error is much more explicit:some-function () { :; }sh: `some-function': not a valid identifier