From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 86589 invoked by alias); 12 Sep 2017 13:10:05 -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 85951 invoked by uid 89); 12 Sep 2017 13:10:04 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=ham version=3.3.2 spammy=H*M:6029, searches, H*R:D*cygwin.com, HContent-Transfer-Encoding:8bit X-HELO: mail-it0-f54.google.com Received: from mail-it0-f54.google.com (HELO mail-it0-f54.google.com) (209.85.214.54) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 12 Sep 2017 13:10:02 +0000 Received: by mail-it0-f54.google.com with SMTP id c195so28789048itb.1 for ; Tue, 12 Sep 2017 06:10:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:reply-to:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=DekVBgzhvA80abb9bElH1dgDx+vecc6Na25LeLODDHw=; b=CVEXwOGw3qmCVjgANFzEQzpJtSPi75DSL/AzOXpDn6tUXfY0ihzouZJTZzzf2vP7JK v0Ld4ya4EGBQKIa9v852KqDebhdZRXLHbEUjewYWAJAldaaLby2J03+HSiismqFpTq/I T26LCZx47bMgBIfp/ECc57vXW/yjQG6Rijiy9H+5AyFIlRqBxmcP39KHYVYxzZz6VyIh Hb1pH73kFWs20wyMb/a1emRlgLbioFFqTZpJEictT5lL8GNjYPKJGgxDf3eaep7NQmVN cCcnHqELceu+o6gi8XaVt8F22rqPy6fz6r5zq+44DaMHJJOmrxR1W9GwegQ10CFGT/gK //4w== X-Gm-Message-State: AHPjjUjDiRerhsQWFIuTHGobYCDvATQprL/IMF3W7Oh2i1xQT+RauxRW ZUQHDH9n5GYu+ANdYwsCDJcZaw== X-Google-Smtp-Source: AOwi7QDH2NSCNUSRhGxjpHGMpa2rldOyv4QGuRpU0U9d68vHDOQcqdE4g3M5QKR72dTmRDVaeI+4ZA== X-Received: by 10.36.223.2 with SMTP id r2mr1080351itg.19.1505221801026; Tue, 12 Sep 2017 06:10:01 -0700 (PDT) Received: from [192.168.0.6] (d4-50-42-50.try.wideopenwest.com. [50.4.50.42]) by smtp.gmail.com with ESMTPSA id e78sm6293649itc.44.2017.09.12.06.10.00 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Sep 2017 06:10:00 -0700 (PDT) Subject: Re: Extra CR symbol from backticks on Cygwin 2.9.0 To: cygwin@cygwin.com References: <7ed18312-4929-8299-d186-9cb0aa541a93@redhat.com> <61150261-b3c4-d5e5-23ff-a4320a19715c@redhat.com> Reply-To: cygwin@cygwin.com From: cyg Simple Message-ID: <502a33ed-6029-5a22-c3ff-83bd382437df@gmail.com> Date: Tue, 12 Sep 2017 13:10:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <61150261-b3c4-d5e5-23ff-a4320a19715c@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2017-09/txt/msg00137.txt.bz2 On 9/12/2017 9:06 AM, Eric Blake wrote: > On 09/12/2017 12:38 AM, Nikolay Melekhin wrote: >> https://www.gnu.org/software/bash/manual/bash.html#Command-Substitution >> >> "...with any trailing newlines deleted." That is why I expected that >> bash should remove trailing newlines in command substitution results, >> which are CRLF on Windows. > > No, newlines are LF. CR are carriage returns, not newlines. > Unfortunately the Google searches don't agree. I started to make the same exclaim but decided against it after doing a Google search for newline. -- cyg Simple -- 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