From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15774 invoked by alias); 14 Jun 2017 14:14:53 -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 14800 invoked by uid 89); 14 Jun 2017 14:14:52 -0000 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 Received: from smtp-out-no.shaw.ca (HELO smtp-out-no.shaw.ca) (64.59.134.12) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 14 Jun 2017 14:14:51 +0000 Received: from [192.168.1.100] ([24.64.240.204]) by shaw.ca with SMTP id L94Od8BP4M9gtL94PdNT14; Wed, 14 Jun 2017 08:14:53 -0600 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.Inglis@SystematicSw.ab.ca Subject: Re: Pipe after Command Substitution does not resolve the substitution: To: cygwin@cygwin.com References: From: Brian Inglis Message-ID: <5cb58749-2ed2-e163-4b72-73948a48c66d@SystematicSw.ab.ca> Date: Wed, 14 Jun 2017 14:14:00 -0000 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 X-SW-Source: 2017-06/txt/msg00144.txt.bz2 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