From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 59828 invoked by alias); 12 Sep 2017 09:20:12 -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 59224 invoked by uid 89); 12 Sep 2017 09:20:11 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=BAYES_00,FREEMAIL_FROM,KAM_THEBAT,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=H*F:D*yandex.ru, H*x:Bat!, H*UA:Bat!, H*r:ip*192.168.1.10 X-HELO: forward102o.mail.yandex.net Received: from forward102o.mail.yandex.net (HELO forward102o.mail.yandex.net) (37.140.190.182) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 12 Sep 2017 09:20:06 +0000 Received: from mxback4g.mail.yandex.net (mxback4g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:165]) by forward102o.mail.yandex.net (Yandex) with ESMTP id 260365A01D59; Tue, 12 Sep 2017 12:20:03 +0300 (MSK) Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net [2a02:6b8:0:1a2d::26]) by mxback4g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id zE09c2lVGI-K2AmZvE5; Tue, 12 Sep 2017 12:20:03 +0300 Received: by smtp2o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id MkG38j0BJz-K2uWFRRm; Tue, 12 Sep 2017 12:20:02 +0300 (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client certificate not present) Authentication-Results: smtp2o.mail.yandex.net; dkim=pass header.i=@yandex.ru Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Tue, 12 Sep 2017 09:07:35 -0000 Date: Tue, 12 Sep 2017 09:20:00 -0000 From: Andrey Repin Reply-To: cygwin@cygwin.com Message-ID: <1115402835.20170912120735@yandex.ru> To: Nikolay Melekhin , cygwin@cygwin.com Subject: Re: Extra CR symbol from backticks on Cygwin 2.9.0 In-Reply-To: References: <7ed18312-4929-8299-d186-9cb0aa541a93@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2017-09/txt/msg00134.txt.bz2 Greetings, Nikolay Melekhin! Please don't top-post. Thank you. > Thanks! This option is what I am looking for. > However I cannot agree with you on bash behavior in Cygwin. Section of > command substitution in bash documentation says: > 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. > From my point of view, bash in Cygwin should follow the same rule on > Linux and Windows: remove trailing newlines in command substitution. > So remove trailing CRLF on Windows. Cygwin adhere to POSIX standard. Not Windows. -- With best regards, Andrey Repin Tuesday, September 12, 2017 12:06:51 Sorry for my terrible english... -- 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