delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/09/12/09:10:18

X-Recipient: archive-cygwin AT delorie DOT 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:reply-to:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=PocNLeV8NcHLdeUu
oNg1aeJtCi0InmuCTFbCztRs0gpngSnyu++PH4FPZEz5tmWcgJkQ54A/2cl5XatM
wtajaDFv0p4v8aBxzEwUWecITO9Jw5N3Anx3YeCiElUe7XL0l+6aPSaaRAYG6KnY
/cfxwkk1SfbS31vXofH1cdCVnw0=
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:reply-to:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=b+7EFXEJUMCFQiPyTpV18y
1Xqng=; b=fwQBLUKgVT1oIWamkNBXqDJ9vWV4hgjI1bWYJKHWjm7Fa4o3BBNMJx
YGmdM2Vhgsh1nY32FwaPO8sbRtTdKr1GL86zK/oQDpvUX6Anj53KfhfUhF0hsf1u
6EUiJnIlHs3eYo3PdKVDyLhmYKWXMOZmt+yWVP93xdGa4I+YSpBq8=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
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
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)
Subject: Re: Extra CR symbol from backticks on Cygwin 2.9.0
To: cygwin AT cygwin DOT com
References: <CAAq9174Ffd-zFLrCsUSz5DcxW8DYaeQbxsPxWMH0bh0vPBJCLA AT mail DOT gmail DOT com> <7ed18312-4929-8299-d186-9cb0aa541a93 AT redhat DOT com> <CAAq9174TrUGOr+y4GvMWEqNXao-zyemptuoSM8_Jna33qwpjiw AT mail DOT gmail DOT com> <61150261-b3c4-d5e5-23ff-a4320a19715c AT redhat DOT com>
Reply-To: cygwin AT cygwin DOT com
From: cyg Simple <cygsimple AT gmail DOT com>
Message-ID: <502a33ed-6029-5a22-c3ff-83bd382437df@gmail.com>
Date: Tue, 12 Sep 2017 09:10:02 -0400
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>
X-IsSubscribed: yes

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019