Problem
I am sourcing a set of csh(C) commands and find that the
csh(C) reports that there is an undefined variable but I am
never returned to the shell prompt. The shell is still running
and consuming CPU and memory resource on the system.Create a file called "foo" with the content:
unset $FRED; echo $FREDThen issue the command:source fooThis will result in the error message:
FRED: Undefined variable.but you are never returned to the csh(C) prompt.
You will have to use kill(C) -1 to terminate the shell.
Cause
If you have any undefined variables among the csh(C) commands that you are sourcing, then the csh(C) will go into an uninterruptable state where it will consume CPU and memory resources.
Solution
SCO Engineering is aware of this problem and is working to
resolve it. It is scheduled to be addressed in a future
release of SCO OpenServer.As an alternative, use tcsh. This shell is available
via ftp(TC) from:https://ftp.scoexpert.com/Skunk/CD-ROM/bin/tcsh