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:reply-to:subject:to:references:from:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=DsV06OWaqenPitVI zZ4aejXXuFmqFlpRgpqIc/BQ4fS7iPYiYkSaRn0O0dpE8IuwkYK9E5eICn3WkK5a wAjoIqT+nGcjnk9v9qgIwTiXTG2Vheu45XW9fJgr8wEU1LRL0ekQ3/FAL9Viq1tF jawO3Au3hJUOn+rVtQ8UqrS/riY= 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:reply-to:subject:to:references:from:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=R0mg6W/9QTvMBkgfDEz5B/ RDvjc=; b=HhMbmUwC7CSszuk4MiwXMsS6go2/VjeC+jgnSda++GpW/s31OlHY1Y tSwmxXpgILP4Af9V07QQAcdSUl4aYEUQfgFJTgzOSOs/r45X4+eHtqrX29IrfCz5 gajmdIadLMFFh2enCXsySZ6Scq5O8CU2ffsOjDnC91Slq+S5EHdL8= 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.5 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=inglis, Inglis, Alberta, alberta X-HELO: smtp-out-no.shaw.ca X-Authority-Analysis: v=2.2 cv=a+JAzQaF c=1 sm=1 tr=0 a=MVEHjbUiAHxQW0jfcDq5EA==:117 a=MVEHjbUiAHxQW0jfcDq5EA==:17 a=IkcTkHD0fZMA:10 a=mDV3o1hIAAAA:8 a=w_pzkKWiAAAA:8 a=wn2tWnfOKRrLvmu7J_sA:9 a=QEXdDO2ut3YA:10 a=dI9p-avQWAUA:10 a=9c8rtzwoRDUA:10 a=_FVE-zBwftR9WsbkzFJk:22 a=sRI3_1zDfAgwuvI8zelB:22 Reply-To: Brian DOT Inglis AT SystematicSw DOT ab DOT ca Subject: Re: Pipe after Command Substitution does not resolve the substitution: To: cygwin AT cygwin DOT com References: From: Brian Inglis Message-ID: <5cb58749-2ed2-e163-4b72-73948a48c66d@SystematicSw.ab.ca> Date: Wed, 14 Jun 2017 08:14:52 -0600 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfMSu4zNUY6MF5VIV1hid9TqEVqaUl3lb3qu+P7ZmWnse0zjjXgHJ0IYPHXdSh/c2Oghp6mUdadgR1uTYCrckwghLakdiC5evVRIAVqtPhczb2AklMM7E rYSOdpWNhOxcr3fKss/b31CmS2LKhPc6VGuo1R+kHreIuBN5RsHGa1qsHM1XjIa1yfxsTIfngVAE6Q== X-IsSubscribed: yes On 2017-06-14 01:41, Jon Bord wrote: > Windows 10 > bash 4.4.11(2) and 4.4.12(3) Better to just run the commands and post the output e.g.: $ cmd /c ver Microsoft Windows [Version 10.0.14393] $ uname -svrmo CYGWIN_NT-10.0 2.8.0(0.309/5/3) 2017-04-01 20:47 x86_64 Cygwin $ bash --version GNU bash, version 4.4.12(3)-release (x86_64-unknown-cygwin) Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software; you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. and run and attach output as text: $ cygcheck -svr > cygcheck.out > $ set -xv > (EXAMPLE 1: COMMAND SUBSTITUTION WORKS AS EXPECTED) > $ grep 2 $(ls | tail -1) > grep 2 $(ls | tail -1) > ++ ls > ++ tail -1 > + grep 2 test.txt > 2 > 23 > (EXAMPLE 2: HANGS) > $ grep 2 $(ls | tail -1) | grep 3 > grep 2 $(ls | tail -1) | grep 3 > + grep 3 > + grep 2 > (EXAMPLE 3: HANGS) > $ grep 2 `ls | tail -1` | grep 3 > grep 2 `ls | tail -1` | grep 3 > + grep 3 > + grep 2 $ cat z 1 2 3 12 23 13 $ grep 2 `ls | tail -1` | grep 3 23 WFM! Command substitution adds arguments to the command line and does not interfere with pipes. > SPECULATION: i had wondered if the cause was a change in version of > bash but i cannot be sure what the version was that i was using on > Windows 7. I wish i had a record. I've tried this on both 4.4.11(2) > and 4.4.12(3). My instincts are that it is not, that it is Cygwin (or > more precisely bash.exe?) on Windows 10 instead. I have noticed other > differences / problems, eg arrow keys behaving oddly in vi, and > general sluggishness (but not tested yet). Cygwin 32? Run "rebase-trigger full", shut down all Cygwin processes, download and run setup to do a full rebase, and retry. AV? BLODA? https://cygwin.com/faq/faq.html#faq.using.bloda Fork problems are often a symptom of poorly written software like those listed. -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada -- 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