X-Recipient: archive-cygwin AT delorie DOT 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 User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: redirect-append (>>) creates garbage-y file References: <4B30AD0BED19E842AAE88DC397364931240B83C3E9 AT mail3 DOT walsh DOT 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 AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT 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