X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:mime-version:date:message-id:subject:from:to
	:content-type; q=dns; s=default; b=PrPJnb2YoRo8wQLnSEm1VyVqrKDwV
	LUOVSaNF6KbtZUvSm96zWIxKe1NjbfUpPjIMpLy63IqkdKa93U8+leXsdlT5c8pL
	0NEz2B5abZz2GWlesVa9/H3OjlFyfO1Ik2iroZddAX1yFEG8rXkQI70W/uDPkBCE
	kiNtqHzyx4Gpx8=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:mime-version:date:message-id:subject:from:to
	:content-type; s=default; bh=oRMYO4VWD7MEu5YkRUv/7vexgTA=; b=N8n
	tsaewuU6x7GfxfjomShH3+Ra0HL6xAIS3sAwn32gwkCR02Cgo29rputuryxa6PJd
	CYzvOUbRuDnYV2Vs8mIB7nWUXp1er1vWZjD4FhggwbSoSbs4iy4Jfs3zN4AgObc6
	SOO0C/pF7unJ4XTb3BOri60/8dsXEajRPZ/Hn1/A=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-yk0-f172.google.com
MIME-Version: 1.0
X-Received: by 10.236.113.199 with SMTP id a47mr29274229yhh.80.1399792669044; Sun, 11 May 2014 00:17:49 -0700 (PDT)
Date: Sun, 11 May 2014 02:17:49 -0500
Message-ID: <CAAXzdLWOYqV1qvWtdovrLn5OYWHvgtyoc9Gyy2f2XSnAL_kyVQ@mail.gmail.com>
Subject: dd garbled output
From: Steven Penny <svnpenn@gmail.com>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=UTF-8
X-IsSubscribed: yes

Using this file

    $ cat file.txt
    hello
    doge
    world

I can run this command

    $ grep -v doge file.txt | dd conv=notrunc of=file.txt

and get output as expected

    $ cat file.txt
    hello
    world

However with Cygwin the end result is garbled

    $ cat infile.txt
    hello
    world
    orld

What is causing this?

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

