Why does the following code give me an error in the header?
_say_hey() { echo "hey" } echo "$(_say_hey())"
When calling a function, call it like a normal command (leave it without parentheses):
echo "$(_say_hey)"
Note that echohere is redundant; you could just write _say_heyline by line for the same effect.
echo
_say_hey