> I've just been trying to write a script that changes the current
> directory (not only):
> cd dir1
> It doesn't work because it is interpreted by another copy of tcsh,
> and when the script terminates, the copy of tcsh terminates too, and
> the current directory remains unchanged. I have no idea what to do
> about this. Can you help me? Of course, I'm not interested in aliases or
> something like "> source script".
When you run a shell script in ANY shell, you're copying in your
current environment into a child process. When you leave your child
process, you loose all of your environment changes, and you're back
where you started. No way around that. This includes setting
environment variables, shell settings, etc. The only way around this
problem is to run the shell script in the current environment.
Since you specifically said you don't want to source in the file, there
is no way around.
Deutsche Morgen Grenfell Phone: 212-469-3416
Business Technology Systems Fax: 212-469-6220