I have a scenario where a tomcat user-defined configuration is stored in a file called tomcat.env.In catalina.sh we are sourcing the values as below:. $CATALINA_BASE/bin/setenv.shBut as the configuration is present in a different file I tried adding:#!/bin/shif [ -f ./envvars/tomcat.env ]; then   . ./envvars/tomcat.envfiBut the values from the tomcat.env file do not get sourced into the shell running the catalina.sh script. So the custom configurations are not getting set.Any idea why this is happening ? or is my understanding of source not right ?folder structure--bin (contains)-------- catalina.sh-------- setenv.sh-------- envvars (contains)-------------------- tomcat.envthe script is executed from a interactive parent script which inturn invokes catalina.sh and within catalina.sh setenv.sh is sourced which internally sources tomcat.env.
Unable to source file
bash;shell script