I have a function in bash
foo ()
{
# does some work
}
and I pass a parameter that contains a dot (for example hostnames contain dots)
HOSTNAME=`hostname` # pretend its host.on.a.net
foo $HOSTNAME
When foo does work on HOSTNAME, it will split into multiple arguments and $1 will be host instead of the full host.on.a.net
How do I avoid this default behavior?