How to define a variable in a TCSH script that will not be exported to the process which invoked it

command-line-interfacescripting

I know that in KSH, if I write export A=B the process which invoked my script can evaluate ${A}, and if I write A=B, then ${A} will have no value outside of my script.

How can this be done in TCSH? I only know of the style: setenv A B to set value for variables

Best Answer

Shell variables can be set via the set command in (t)csh.

set variable=value