From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 47273 invoked by alias); 30 Aug 2016 17:04:05 -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 47263 invoked by uid 89); 30 Aug 2016 17:04:05 -0000 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 Received: from mail-it0-f43.google.com (HELO mail-it0-f43.google.com) (209.85.214.43) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 30 Aug 2016 17:04:03 +0000 Received: by mail-it0-f43.google.com with SMTP id n75so3856750ith.0 for ; Tue, 30 Aug 2016 10:04:03 -0700 (PDT) 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) Received: from [192.168.0.12] (d27-96-48-76.nap.wideopenwest.com. [96.27.76.48]) by smtp.gmail.com with ESMTPSA id n1sm10625658ith.8.2016.08.30.10.04.00 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Aug 2016 10:04:00 -0700 (PDT) Subject: Re: Script broken after updating bash to 4.3.46-7? To: cygwin@cygwin.com References: <93be816b-952c-20cd-575e-940cdf4fbbd1@redhat.com> From: cyg Simple Message-ID: Date: Tue, 30 Aug 2016 18:21:00 -0000 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 X-SW-Source: 2016-08/txt/msg00608.txt.bz2 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