You can use the .
command to execute commands from a shell script as if they were in the calling shell script itself.
If I use the dot command in my shell scripts, will it behave similarly across different shell interpreters?
PLEASE Note: I'm not asking about the difference between the .
command and the source
command. If that's what you want to learn, please see this other question: Using dot or "source" while calling another script - what is the difference?