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:subject:to:references:from:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=wPdQ4+nQ82T6MPBR
	B1Kq8KlHeob5/4nEzK2qyT83m+Mx3JOpCkxyz7Zi7HO23VeADiMrNZw3Uj9YhD9Y
	K54m46M3+F8BQ3Iu9Imymuu/yXKNnbPI+GzFKJ0YVzUZu2o4a16jhHq1hD8bREMu
	hWb5O3iDldG0dZ9WsE+xV6wel/U=
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:subject:to:references:from:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=r67k2etktLJyN6utSHYoih
	ZtFZo=; b=MTj090sbYvxrV104Oi/+hsFEu+PK/d5I6wto/I1hul++adYVfTSV05
	ak4BGOkmZDhojEjL/evu+fntFCLPRCcSqikqtfMwVcmP5X6apJGLjBR5XGDcH0XX
	fo3EOdVPsSkvkc4uz48eCL4l5WzUbT0lgLaCQYwqL4Ntxw3AFwqIY=
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-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FOREIGN_BODY,FREEMAIL_FROM,GIT_PATCH_2,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.1 spammy=antivirus, uname, carriage, cygwincom
X-HELO: mail-wr1-f44.google.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=gmail.com; s=20161025;        h=subject:to:references:from:message-id:date:user-agent:mime-version         :in-reply-to:content-transfer-encoding;        bh=r6V/yVelwy7EbSV9Wyg5xVeKaIKn7cC0tBVEiWk1eGQ=;        b=DHfGFwKmiF1ydO5x6cwxl+ZNuw1ZA4l+C3YhwM3ZhvbMFRAkQ2WXQ2NtkTDLnSMyUH         fcNGgHcJUtcxb9EgGjHm2+GdNFREWa3cYSUkfcDb2THktRamPXNaEcgBtKhwMp+3UO+b         bMASR4/VdNjDFj4rcZC55os6nH399ORccUwamUj5gWpd4yftwdbVq79Xcdh8f8Fu+BT/         3Br1OWBrv6fnE3Lgbu6MASN/BlBlOY3eW5zPQI6AAtT6wBe7eEsoVAvCadeJvB/3Syi3         n2GWjEtXa5azclJkqCEKt6oXHcTC98wdViSatjhvIB4Fq3ey28s0Phn9BSL9ASeOf1ZQ         clDA==
Subject: Re: carriage return newline being appended when using redirection in binary mode
To: cygwin@cygwin.com
References: <004201d4f382$4da27ee0$e8e77ca0$@pinky.co.uk>
From: Marco Atzeri <marco.atzeri@gmail.com>
Message-ID: <cdfa454c-811e-f0d7-b537-703bf8b223da@gmail.com>
Date: Mon, 15 Apr 2019 14:18:11 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1
MIME-Version: 1.0
In-Reply-To: <004201d4f382$4da27ee0$e8e77ca0$@pinky.co.uk>
Content-Type: text/plain; charset=utf-8; format=flowed
X-IsSubscribed: yes
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id x3FCISwE016876

Am 15.04.2019 um 13:56 schrieb chris.day@pinky.co.uk:
> Hi -
>
> I'm having problems with carriage return newline being appended when using
> redirection in binary mode. If I pipe to cat and redirect the newline is
> preserved, which is odd.
>
> CYGWIN_NT-10.0 edmund 3.0.6(0.338/5/3) 2019-04-06 16:18 x86_64 Cygwin
>
> chrisd@edmund:chrisd > mount
> E:/abinitio/cygwin/bin on /usr/bin type ntfs (binary,auto)
> E:/abinitio/cygwin/lib on /usr/lib type ntfs (binary,auto)
> E:/abinitio/cygwin on / type ntfs (binary,auto)
> C: on /cygdrive/c type ntfs (binary,posix=0,user,noumount,auto)
> D: on /cygdrive/d type ntfs (binary,posix=0,user,noumount,auto)
> E: on /cygdrive/e type ntfs (binary,posix=0,user,noumount,auto)
> F: on /cygdrive/f type ntfs (binary,posix=0,user,noumount,auto)
> G: on /cygdrive/g type ntfs (binary,posix=0,user,noumount,auto)
> H: on /cygdrive/h type vfat (binary,posix=0,user,noumount,auto)
> Q: on /cygdrive/q type ntfs (binary,posix=0,user,noumount,auto)
> chrisd@edmund:chrisd > echo "Hello"
> Hello
> chrisd@edmund:chrisd > echo "Hello"  | od -c
> 0000000   H   e   l   l   o  \n
> 0000006
> chrisd@edmund:chrisd > echo "Hello"  > foo.txt
> chrisd@edmund:chrisd > od -c foo.txt
> 0000000   H   e   l   l   o  \r  \n
> 0000007
> chrisd@edmund:chrisd > echo "Hello"  | cat > foo.txt
> chrisd@edmund:chrisd > od -c foo.txt
> 0000000   H   e   l   l   o  \n
> 0000006

I can not replicate
  $ uname -a
CYGWIN_NT-10.0 LAPTOP-82F08ILC 3.0.6(0.338/5/3) 2019-04-06 16:18 x86_64
Cygwin

$ echo "Hello" > foo.txt
$ od -c foo.txt
0000000   H   e   l   l   o  \n
0000006

can you provide the cygcheck.out as mentioned on
https://cygwin.com/problems.html

---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
https://www.avast.com/antivirus


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


