~/.bashrc
----
example()
{
echo "example function"
}
If I use this in a shell script
#!/bin/sh
example
I get command not found.
I have tried
#!/bin/sh
source ~/.bashrc
example
but it doesn't work.
I found these answers and think this question deserves to live here with a clear question and clear and concise answer.