From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 112231 invoked by alias); 11 Jul 2017 23:22:20 -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 112217 invoked by uid 89); 11 Jul 2017 23:22:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.3 required=5.0 tests=BAYES_50,FREEMAIL_FROM,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=VERY, dell, Dell, cygwin_nt100 X-HELO: mail-oi0-f52.google.com Received: from mail-oi0-f52.google.com (HELO mail-oi0-f52.google.com) (209.85.218.52) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 11 Jul 2017 23:22:18 +0000 Received: by mail-oi0-f52.google.com with SMTP id x187so6172614oig.3 for ; Tue, 11 Jul 2017 16:22:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:to:subject:references :user-agent; bh=/VHPxuJIpaZZsUe09aaZmHxVw0vt4tk8/DvRs/Kgysk=; b=uGEywi/RAvJV0wEqm92eVRYhyYAEs5XCMTAC+Pj6qZ0G90TK0iJigbSBu8tj0eqqPP AFGLdc7kZxqHp7py5+O3fabMMoQnaJlHF7QmxX5MtEDhLz3oShljWSFOnkLNtEIohyti +gVmgS5KEZS3V3zkJFeNfVfoA48H2VV+42Leisilhobx2UnKtAQeiYq8fmLCC2fsE6Nv OWzKQXcR7y3W9VK3Sj6zAMX+wVF6gqU61PCXH+4ZpyjI5A8UzIRysw+ng4JV9Z5Icwfv JCVpiQ5MWwjyVa1p66oSKHWtuJO9muSIciQBNtHdf2+mFdEyLbMUsJbkhD9WiimvyEyI FF5w== X-Gm-Message-State: AIVw113LzfbdfhTSs2RJjLK/13vqzEpj5h6jH7WMkhB8GvipQPVDoc3a F53K6MXt3Rf9r28c X-Received: by 10.202.98.137 with SMTP id w131mr1558582oib.145.1499815336528; Tue, 11 Jul 2017 16:22:16 -0700 (PDT) Received: from OjY ([2605:6000:9fc0:56:813:bad7:424c:e627]) by smtp.gmail.com with ESMTPSA id u186sm1074332oie.34.2017.07.11.16.22.15 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Jul 2017 16:22:15 -0700 (PDT) Message-ID: <59655da7.c3abca0a.1036d.610b@mx.google.com> Date: Tue, 11 Jul 2017 23:22:00 -0000 From: Steven Penny X-Google-Original-From: Steven Penny To: cygwin@cygwin.com Subject: Re: Challenge: a VERY strange problem with command substitution in bash References: <93b0a4e1-78eb-798e-9946-cd38ab288cce@wagner.is> Content-Type: text/plain; charset=utf8; format=flowed User-Agent: Tryst/2.0.1 (github.com/svnpenn/tryst) X-SW-Source: 2017-07/txt/msg00196.txt.bz2 On Tue, 11 Jul 2017 21:12:14, =?UTF-8?Q?J=c3=bcrgen_Wagner?= wrote: > 2. Windows 10, Version 1703, Build 15063.413 on a Dell 64bit platform, > latest 64bit Cygwin (CYGWIN_NT-10.0, 2.8.1(0.312/5/3) 2017-07-03 14:11 > x86_64 Cygwin) /bin/bash > > $ value=3D"$( date | cat )"; echo "$? <$value>" > 127 <> For what it is worth, I cannot repro this with Windows 7: $ value="$( date | cat )"; echo "$? <$value>" 0 Also, your example is poor. As you well know, "cat" in this case should be a noop: $ date | cat Tue, Jul 11, 2017 6:20:53 PM Perhaps you can provide a sane example that fails? Something like: $ date | sed s/M/Z/ Tue, Jul 11, 2017 6:21:46 PZ -- 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