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 echo statement has the strange behavior. I guess it doesn't "release" the file, or close a pipe or something. Thanks again, this is a good workaround. Paul -----Original Message----- From: neal somos [mailto:[EMAIL PROTECTED] Sent: Friday, September 10, 2004 1:15 PM To: [EMAIL PROTECTED] Subject: Re: TCSH 6.13 shell script can't re-write to a file If you use /bin/echo the problem goes away. I can reproduce the problem with tcsh and when using /bin/echo instead of the builtin, I get the expected behavior. Apparently the built-in echo functions differently. neal _______________________________ Do you Yahoo!? Shop for Back-to-School deals on Yahoo! Shopping. http://shopping.yahoo.com/backtoschool -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/