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:from:date:message-id:subject:to :content-type; q=dns; s=default; b=iEQh7684kLhi4hjf1NB1gYGxA1upb GGLwlnaFYhm9WXz+7Z58YLX/HUC7p5JZlfAsXtsMhEH+QgbllTWhXiEQoiDQy7dM IcyZR2X8EtNWLOfBW/169O98wyKhMtsvPM55SuUip6zg28/OFKKdNFTASm1Y9kbv FVIxd00+nLTZ2c= 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:from:date:message-id:subject:to :content-type; s=default; bh=cxAphog8GQuEUett4stxvpGq7hI=; b=vQ9 smdF1cd2BSHc5WwcbW4KlObSNhmgwSRaBuW0iWwSguSG/TK2R4T3oA4kaTjGsoGR yIYWjkQPKSx0nWem3Z9BNg9Hc1h41NwAq7/0Qf4MUggw0SoJIzpvrZFiaFZ6vx9G ZOEh4v3CrXVlr+XXTTi/TCIkypu0gL9Ht78wV2sg= 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.9 required=5.0 tests=AWL,BAYES_20,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=sk:config_, sk:CONFIG_, Gene, gene X-HELO: mail-it0-f53.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:from:date:message-id:subject:to; bh=Zlc+h3/y51FkEX6eWcNINQhU3x95WJz0jcywz0R6JCk=; b=KyBD1g7gsM74cA8Ha4D9Q7Ku0nNpaIbE7vk4FFg5+EwyTbJhWm154fpKsGEvl/qpho srkej1LcxzNVpDE2iaKHOIvbDhuG9wNPSh+w4zqi8aPphvDK3yDvyccJb+PyF7Qvd3Uu zrZW4F/dsALt+hpImNZhx9tRlF9zKBRhN9HvfYx0EVV9LsHGxD2oo9YcJwjWTDCpOskN G2pUVQ/9VsDEqNre3GCutc1zIAuMhRYOOt256Hd+ZCAlZO2VSodiyExp1AwFbPa9xjhg uN3rESbx5hklbflcJws4jGfK7cgnPGcDdXcGJDsdd+tKcK++iJlCx5BWkAvEIzhzAjXn CYcQ== X-Gm-Message-State: AE9vXwPFjsKriF5/9gVlkLc5xGYzx+Bvp6J41uoBwCDziUJIkacdQ+KRjFsQlZELQCo/GQSiKdZGrboXcLd30A== X-Received: by 10.107.6.233 with SMTP id f102mr7778839ioi.55.1472255351051; Fri, 26 Aug 2016 16:49:11 -0700 (PDT) MIME-Version: 1.0 From: Gene Pavlovsky Date: Sat, 27 Aug 2016 02:49:10 +0300 Message-ID: Subject: 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 After I updated Cygwin yesterday, a daily database backup bash script (`automysqlbackup`) broke. My previous bash was 4.3.42-4 (installed when I updated Cygwin on 2016/07/23), current is 4.3.46-7. Here's the code snippet: ```bash local i;i=0; while read -r; do alldbnames[i++]="$REPLY"; done < <(mysql --user="${CONFIG_mysql_dump_username}" --password="${CONFIG_mysql_dump_password}" --host="${CONFIG_mysql_dump_host}" "${mysql_opt[@]}" --batch --skip-column-names -e "show databases") ``` This is supposed to get the list of all databases. Before it worked. Now every item on the list ends with the CR character ($'\r'), causing a bunch of issues with further script opreation. I'm using official MariaDB Windows x64 binaries. Frankly if mysql does output CRLF line endings, I don't know why that script worked before, considering that this command in an interactive shell produces a similar result: ```bash # echo $'information_schema\r' | { read -r var; echo "{$var}"; } }information_schema ``` But it did work somehow... Question is - what made it stop working now, and what would be best way to fix it? Regards, Gene. -- 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