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:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; q=dns; s=default; b=qOzUk6X 6ctn7tMB/TS4ifsfY/IkCpz1Q1yxL3ydQn59gsR9inufqny0eQeWYVDxSJMwim2X zyQefrkBWZEOpopIsmXWBTlioj5Gq1rgWpUqHK0tkHT4NGOkZouCGLPo1LmwKmEj 8DCsDfoSt0XiqtvclkQE8HVI/kd6yXirq/2Y= 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:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; s=default; bh=0kC4DZVaAg1fk klMKlZuanrbnIc=; b=gXZKpFpJzRY6GzFt6yRO5HkseHmo6LCpY0akWrfXKZ//s SaIbH1UUCmx4Qw5LH6pDk5mfbd/RweYRZXJWO53RMTSAkqGjUCvCIHZWx5UElll4 aMlbmFPDLflByx/0v3EUlk266ZmBShhP9eRU8EJtmvK/RbUGwjt0pTE46MuJ5U= 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=-2.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=H*MI:sk:CAPTiy3, H*i:sk:1635303, H*f:sk:1635303, lucky X-HELO: mail-it0-f41.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=iF73Cvpimq7E4T5aUmH9+cxHiZiJmVvAIPgizdaT/QM=; b=UNJKDV9qSvjuj8dtn13exbGYgxW9K21rD5dBA6XM/ZmLUypdIFp2w3RVpE2QfKOe2N O6Ce7AShAAw//9qXdpiL8TE25bnMQD6QiPCUkGqahze0vrCOqlHJXmKd4hkSwaLNZZ8L rkC9szTUuJPZHGC/gzECtrXiWebTEiWaL5hMm7RHea70DS++24T7f+fSo0/zhIdF2bvx UqWypb5jRjXcLNYnjTdnApPHjAkUZUIiKFV8eEj54eg3jc9fDZeaNnH+AbBAnMQt6iDX VMjED4Q2orpHFDRKhM17FSoYRqagRHblXnmohiwkN87VLk1nOqu8EhyLAnooIms4K+bW pz2g== X-Gm-Message-State: AE9vXwMedae4WYzzgNVWgxWfoTIuUd1vqKBmkF3kwqLBuCxqHWWA1TPn4W9c43MSl/jd//U+/O7AUb9NPoR6Kg== X-Received: by 10.107.130.81 with SMTP id e78mr12080081iod.137.1472322668138; Sat, 27 Aug 2016 11:31:08 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1635303092.20160827191501@yandex.ru> References: <1635303092 DOT 20160827191501 AT yandex DOT ru> From: Gene Pavlovsky Date: Sat, 27 Aug 2016 21:31:07 +0300 Message-ID: Subject: Re: Script broken after updating bash to 4.3.46-7? To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes Andrey, That's what I personally think, none of the scripts I use have CRs, and this is why I'd prefer not using the `igncr` option. However the recent change to how `read` works makes it necessary to modify existing scripts which interoperate with Windows console programs (in my case, Windows build of mysql (MariaDB)) that produce CRLF line endings. --Gene On 27 August 2016 at 19:15, Andrey Repin wrote: > Greetings, Gene Pavlovsky! > >> Looks like it's related to a recent change in bash, which is `read` >> now honors Cygwin-specific `igncr` shell option (`set -o igncr`), >> which I didn't enable. >> Adding `set -o igncr` to the top of the script does the job, however >> I'd like to know how many more scripts are potentially malfunctioning >> now? >> It's lucky that one sent e-mails on errors, some others might just >> break silently. >> Is it advisable to add `set -o igncr` to /etc/profile or SHELLOPTS? I >> didn't use that feature before and am worried about some other >> negative side effects. > > It is advisable to not have CR's in your scripts to begin with. > > > -- > With best regards, > Andrey Repin > Saturday, August 27, 2016 19:14:10 > > 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