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:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=gokJi/gpgCgMw2ar Q09IyqOn5Di3g2EulXBLECntgAvxNCyTWYqfNV4fHXw4xIUbBvYNtOyamnKIuvu6 ytECm6SiFtCIA8l31hFgBSodOO9ha1maF1ks+OncWFBNpN4awwE878Kr8Zzye5Xa z2FwQ6JfkqjFkUD3cxlyV00q960= 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:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; s=default; bh=mh1fj3kWzT6WR4qhI0RZJa wr0r0=; b=vPknqadlu6Mjji7CGJTaWiu9Z2lQW0O2S1TR7CjF/P5WRU5uQBsMUa 3wCGwDNTIHI3NSt6vtUkF4NcodsoKwAT13r+p19s0TOBUUXmu8n11lVk1p4bp3jx rvM63gf1AO7xuIndnt4Yq4w5327dt7sEdd1fN8xV/TYNkVirRdoRU= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=-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 Authentication-Results: smtp2o.mail.yandex.net; dkim=pass header.i=@yandex.ru Date: Tue, 12 Sep 2017 12:07:35 +0300 From: Andrey Repin Reply-To: cygwin AT cygwin DOT com Message-ID: <1115402835.20170912120735@yandex.ru> To: Nikolay Melekhin , cygwin AT cygwin DOT com Subject: Re: Extra CR symbol from backticks on Cygwin 2.9.0 In-Reply-To: References: <7ed18312-4929-8299-d186-9cb0aa541a93 AT redhat DOT com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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