RE: TCSH 6.13 shell script can't re-write to a file

2004-09-10 Thread Myers, Paul R (Research)
Thanks Neal, I had assumed the issue was with the rm statement, and was experimenting there. Some experimentation shows the problem is with the first echo statement. If I replace the first echo statement with /bin/echo or even printf the second echo statement works fine. So, as you said, the

TCSH 6.13 shell script can't re-write to a file

2004-09-10 Thread Myers, Paul R (Research)
I have a number of CSH/TCSH shell scripts that work with text files. In several cases I want to remove/erase a file before I start writing to it again. I simplified the problem to this example: #!/usr/bin/tcsh echo "Hello" > stuff rm -f stuff echo "Goodbye" > stuff After a recent tcsh