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:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=j31RbtMhNOewV1Iz UGbI+0pqVd3G8PiPPn60yfR7V9qPi/8MI6FJGECs9OpIQtJfhI8nbutAGU7NYcX6 LotLvQSori002/hJ5Y3/a4VyHQ9JhJf5A+QtNMoDd8jk4bx3onUbU4S+GQ3ySkVm CtI0EXNfR6AH1AQyMQ9m6ZXsqWw= 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:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=AAFvGvSlhZR6RxJRzlxamK zoEtY=; b=oIogGfbQhaAzuHmKKhoIDWytvg1WbnF4d9MzJjoSXk1XjhimABR8x6 ugWXDU7LVO62JWNBI2WzLp/lornj07sQaW1jeU2YoNzhBYdW/T2ypm9GwjdPAwcV 9SbQypCE+iX4R9HurdJqRHe2Hv0EggQsVLNTgrvcL0rlQ9ykBnEoc= 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.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-it0-f43.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=L4RC1Xj0kZbKcH0fzvr8zi3bkhm26bBKpVxHE3FA3WM=; b=ln9wRBNNE+qeQgF6OHgx8KihtI6tlMHx/Xlgqjh7ZOZOZ3yrG9hrc+9RpXmVRvq86d NfMsSL8/QO0HxIVVHxsxm4HCWBiQuV8weXxZJWEYMtgHIZu+pmzlSBXJiIXNJyC3QGl6 +VPXW7sT5jjACE9aKjzWKqZhVnroeWqa0I0B58fM6hnxBp6eYcjPiqNfa4+Bk+TYazoW btvw/CPt5Auqzj65p5S2mC7IXRXkICQzJNMZlYiae3t4Yxr5OmpBbPSjNFufz2Wk8zHO P3PFDqXLI7XUr0RIDChzp2a6UcNxZO7YUuVwsVNVwoUti+YMCDHH8i8icsNuzuOVEguR fNiQ== X-Gm-Message-State: AE9vXwOcuxVIqv8wDPjAxRinf5WrV+T7QxZ58cpPJixNeW24GRwl4Eo2UwHL2iRRZA0C6w== X-Received: by 10.107.26.133 with SMTP id a127mr102835ioa.154.1472576641434; Tue, 30 Aug 2016 10:04:01 -0700 (PDT) Subject: Re: Script broken after updating bash to 4.3.46-7? To: cygwin AT cygwin DOT com References: <93be816b-952c-20cd-575e-940cdf4fbbd1 AT redhat DOT com> From: cyg Simple Message-ID: Date: Tue, 30 Aug 2016 13:04:19 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <93be816b-952c-20cd-575e-940cdf4fbbd1@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes On 8/29/2016 2:30 PM, Eric Blake wrote: > > Simplest fix: > > read ... < <(mysql ... | dos2unix) > This will break when the data returned by mysql is supposed to contain \r. > There. Now you aren't feeding \r to read in the first place. > But you might want to feed \r to read. It isn't a fix, it is a potential work around dependent on the data set results. If a read that is supposed to be reading binary data doesn't pass all of the data to the routine then it is broken. -- 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