setenv NAME [VALUE]
Set environment variable NAME to VALUE. If VALUE is ommitted, then the variable is deleted.
3.4.8. saveenv - save environment to persistent storage
3.5.1. basename - strip directory and suffix from filenames