why does the below script print empty for the shell variables The expected output is "encapsulated-options 10.1.42.35:4334" but it prints "encapsulated-options : ;" . Please advise.
#!/bin/bash
cem_ip=""
cem_port=""
DHCPDCONF="encapsulated-options \"$cem_ip:$cem_port\";";
function print()
{
cem_ip="10.1.42.35";
cem_port=4334;
echo -e "$DHCPDCONF"
return 0;
}
print;