This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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:nsomos@yahoo.com]
Sent: Friday, September 10, 2004 1:15 PM
To: cygwin@cygwin.com
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]