I am trying to understand the tomcat daemon.sh script which contains a bunch of lines along the lines
test ".$TOMCAT_USER" = . && TOMCAT_USER=tomcat
I figured out that
test ".$TOMCAT_USER" = . && TOMCAT_USER=tomcat checks if an environment variable TOMCAT_USER is already defined if so it uses it and if not it uses the default value of tomcat
What I understand is the how the statement is evaluated by bash. I am a bash scripting noob. I am looking for a step by step explanation of how this statement works.