From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32908 invoked by alias); 15 Apr 2019 12:18:18 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 32899 invoked by uid 89); 15 Apr 2019 12:18:18 -0000 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 Received: from mail-wr1-f44.google.com (HELO mail-wr1-f44.google.com) (209.85.221.44) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 15 Apr 2019 12:18:17 +0000 Received: by mail-wr1-f44.google.com with SMTP id p10so21676175wrq.1 for ; Mon, 15 Apr 2019 05:18:16 -0700 (PDT) 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== Return-Path: Received: from ?IPv6:::1? (p200300EE67422101D453F3A2EE6EA8DB.dip0.t-ipconnect.de. [2003:ee:6742:2101:d453:f3a2:ee6e:a8db]) by smtp.gmail.com with ESMTPSA id y132sm19635503wmg.38.2019.04.15.05.18.14 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Apr 2019 05:18:14 -0700 (PDT) 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 Message-ID: Date: Mon, 15 Apr 2019 12:18:00 -0000 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 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2019-04/txt/msg00099.txt.bz2 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=3D0,user,noumount,auto) > D: on /cygdrive/d type ntfs (binary,posix=3D0,user,noumount,auto) > E: on /cygdrive/e type ntfs (binary,posix=3D0,user,noumount,auto) > F: on /cygdrive/f type ntfs (binary,posix=3D0,user,noumount,auto) > G: on /cygdrive/g type ntfs (binary,posix=3D0,user,noumount,auto) > H: on /cygdrive/h type vfat (binary,posix=3D0,user,noumount,auto) > Q: on /cygdrive/q type ntfs (binary,posix=3D0,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=C3=BCft. 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