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
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
2 matches
Mail list logo