X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 	tests=AWL,BAYES_00,MISSING_HEADERS
X-Spam-Check-By: sourceware.org
From: William Lebow <William.Lebow@phaseforward.com>
CC: "cygwin@cygwin.com" <cygwin@cygwin.com>
Date: Thu, 11 Mar 2010 13:12:41 -0500
Subject: RE: redirect-append (>>) creates garbage-y file
Message-ID: <01499D518A9B6F4493FC5A2D32F7A4FC51B52C97D5@MB-EXBX01.north.pf.com>
References: <01499D518A9B6F4493FC5A2D32F7A4FC51B52C97D4@MB-EXBX01.north.pf.com>  <1ef5a52f1003111000x17bd3716yb75d50a9f5db10@mail.gmail.com>
In-Reply-To: <1ef5a52f1003111000x17bd3716yb75d50a9f5db10@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
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

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 encr=
ypted
version of the text in the file. This Credant software is protecting my txt=
 files
by encrypting them.


-- Bill



-----Original Message-----
From: Csaba Raduly [mailto:rcsaba@gmail.com]=20
Sent: Thursday, March 11, 2010 1:00 PM
To: William Lebow
Cc: cygwin@cygwin.com
Subject: Re: redirect-append (>>) creates garbage-y file

On Thu, Mar 11, 2010 at 6:46 PM, William Lebow wrote:
> Hi Csaba,
>
> Thank you very much for the reply. I've downgraded my version of cygwin s=
o I
> need to wait and do the test when I have a few minutes to reinstall the
> newer one. Is the command you sent correct? I don't think tail has a "-a"
> =A0option.

That's because it should have been

echo foo | tee -a test3.txt

:(
--=20
Life is complex, with real and imaginary parts

--
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

