delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/09/10/15:20:57

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <D95313D68743304EA8BD26E7B44ACF8E15CE1E@xmb04crdge.crd.ge.com>
From: "Myers, Paul R (Research)" <myers AT crd DOT ge DOT com>
To: cygwin AT cygwin DOT com
Subject: RE: TCSH 6.13 shell script can't re-write to a file
Date: Fri, 10 Sep 2004 15:19:40 -0400

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019