I create the file .whoisthere. At the command line I enter . .whoisthere2. Then I execute whoisthere2 "These are the folks who are logged in." The parameter $1 is not echoed as I expect. Tried with and without quotes. What am I failing to do?
Code:
# !/bin/bash
whoisthere2()
{
echo "$1"
who
}