delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/03/12/08:05:07

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 <blebow AT alum DOT mit DOT edu>
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>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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

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

- Raw text -


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