Since bash.ip not a valid identifier in bash , the bash.ip=192.168.100.37 environment line is not used to create a shell variable when the shell starts.
I would use awk , a standard tool to extract value from the environment.
bash_ip=$(awk 'BEGIN {print ENVIRON["bash.ip"]}')
source share