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:message-id:date:from:to:subject:references :content-type; q=dns; s=default; b=H/4igCW6EVaFKOHj1r195zvrxmSc6 N+Lqv6d0Wha8HILFB1bvmqpqfxnEhDmWGUFAJIyzwU82xHOKZASQDydK5GVhLm66 h9dpk3ECt0n51biUqb4Kkxee1QSD79RYtp5ypO5qSS2pfcnf2fv/KvjahmAkQbwC L6ODYKODoErnI8= 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:message-id:date:from:to:subject:references :content-type; s=default; bh=qytLOoe/qKna4eYcKTn6tL6i9l0=; b=Jyi BOohj2T7yp+Mzdjn0P/VlJinndAyN4fXmtH4A+HJnUm0R3+dSR+6HSYvdANrMxeH e0e+rOSZF5RrsKCJytNb3cAykLz4vuiKVREyQA5mqwSdWczaE2FJhPKG7cfoz/JQ XilDJVW8JzfaoVi5BHZK3J02ctJbD3CGv/tKRgLg= 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=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 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) Message-ID: <59655da7.c3abca0a.1036d.610b@mx.google.com> Date: Tue, 11 Jul 2017 16:22:15 -0700 (PDT) From: Steven Penny X-Google-Original-From: Steven Penny To: cygwin AT cygwin DOT com Subject: Re: Challenge: a VERY strange problem with command substitution in bash References: <93b0a4e1-78eb-798e-9946-cd38ab288cce AT wagner DOT is> Content-Type: text/plain; charset=utf8; format=flowed User-Agent: Tryst/2.0.1 (github.com/svnpenn/tryst) 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