X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 	tests=AWL,BAYES_00,SPF_SOFTFAIL
X-Spam-Check-By: sourceware.org
Message-ID: <4B9A3C12.3030604@alum.mit.edu>
Date: Fri, 12 Mar 2010 08:05:22 -0500
From: Bill Lebow <blebow@alum.mit.edu>
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: redirect-append (>>) creates garbage-y file
References: <4B30AD0BED19E842AAE88DC397364931240B83C3E9@mail3.walsh.edu>
In-Reply-To: <4B30AD0BED19E842AAE88DC397364931240B83C3E9@mail3.walsh.edu>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Corinna Vinschen wrote:

 > On Mar 11 13:12, William Lebow wrote:
 > > echo foo | tee -a test3.txt : terminal output is okay but test3.text
 > > starts with 3 characters of garbage before the string foo
 > >
 > > echo foo | tee test4.txt : terminal output is okay and test4.txt is 
okay too
 > >
 > > So "tee -a" has the same issue as ">>" when creating a new file.
 > >
 > > BTW, I believe that the garbage characters that precede the text is 
an encrypted
 > > version of the text in the file. This Credant software is 
protecting my txt files
 > > by encrypting them.

 > And it's doing something blatantly wrong. Quite obviously, Cygwin
 > only writes the data once. If it's in the file twice, once encrypted
 > and once unencrypted, then this Credant software does not understand
 > native NT writing with append mode(*). You should report this as a bug.
 >
 > Corinna

Corinna, I can't argue with anything you say, and I have reported it to 
the other
vendor. That said, this wasn't a problem with earlier versions of cygwin 
so I thought
maybe there is something that can be done on the cygwin side.

Thanks

 -- Bill

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

