The only way to do this is to run the script in the current environment. On UNIX this would be done for any script starting with a '.'. Historically, filenames could not start with a '.' on the PC.
KornShell:
In the KornShell there is a separate command . (dot) that will run a script in the current environment.
Example:
C Shell:
In the C Shell use the source command to run a script in the current environment.
Example:
Bash:
In the MKS Bash shell, both . and source are supported as above. |