delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/06/14/11:31:28

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=j85gTgY7dxWvXYVKIE40OMKi3Hg9S
9W2kmn1NRGbFdhaMgFXGQ4wIvaaRCHmZ8tyjCbb5ev0THyGNj1ZnUKNSBy13cCAK
MSlu/gLP5YBPZpz3yWO07+BRRxnLOSvGgi7skR31/WRXqU4JneIVOAKSifEpgTc1
Cj+OCzHPC3LTtc=
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=+7snRKYJmWwYKlAIzziM4479tBc=; b=eej
fuipySa7VfSbxHZEZbpa2WxAvkxLMbjk0FcxgWaNfNNZkaU4Kte3Jh/sBy51UiOE
FlZHUZa33wmycLhwbZ0AUozgWQwRoVkE4um0aBS7vYeRYseTdHQjDAdaSPB6VaAh
VTdwIQXPfB5zJjPm/oxOB9LwRhdJLUGMxib9ivBM=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=culprit, Win10, 2017-04-01, 2.8.0
X-HELO: mail-it0-f49.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=WILFcHZLStyKBA8cAP0YmBJcKuO2zDtvfTV6jeIkLD4=; b=sAPzJEykbIAVRIE/g9zySnRdVN4jNA+AerGmA1naCHx9yanQh0l8gWyIlSiOw1vMFc 3qKgdXJQT45LlzNvduNGDEcyEskuTRP8A1y8EwoIY0wslbUr59ICa57E6j9pMJmicDCU eHZP3Df8RwU2dn4xF+tl0dYhNtb9op14j0PkhyMd7L+IgTOga+WCvGBFP9WYWTtcVQk4 VJ/KeDdjfIRY/jbn72IWCclzCFVNU7QGu0fSkk8FDv8c4keE3LIYgtlK/SCA1i5RZ0Pt n5tp6wvSPi2wACNPO9Kv3+IM5J4KMSpoOQmHBTsRD/+gfsmk8KUVbhg+no+a8SscKewY GXHA==
X-Gm-Message-State: AKS2vOweFLOThtrojiXWwdS3TC7LfPJiLbdMB3Myz11b+TEBnJYnEn+G XSXBcSmopxLDb//BsB5CsBEQC5rS1+RDgPE=
X-Received: by 10.36.41.138 with SMTP id p132mr581982itp.49.1497454221705; Wed, 14 Jun 2017 08:30:21 -0700 (PDT)
MIME-Version: 1.0
From: Jon Bord <namebookcoverjudge AT gmail DOT com>
Date: Wed, 14 Jun 2017 17:30:21 +0200
Message-ID: <CAMwBcu4bedFrriTAxVzihnAhR7cjxEnTp927CHv1643YpLrXPA@mail.gmail.com>
Subject: Re: Pipe after Command Substitution does not resolve the substitution:
To: cygwin AT cygwin DOT com

Firstly, i should clarify the problem definition asap by including
this fourth example which shows a pipe working fine when it is not
preceded by command substitution:

$ grep 2 test.txt | grep 3
grep 2 test.txt | grep 3
+ grep 2 test.txt
+ grep 3
23

Thanks Brian for all the suggestions and for showing it running on
Win10.0.14393. Below is from the culprit:

====
$ cmd /c ver

Microsoft Windows [Version 10.0.15063]

$ 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 <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

====

I don't want to waste any time on this list if the cause is my user
error but this is a different build of Win10 and i have rerun setup
(including autorebase) and tested with BLODA off, including all AV,
and <CYGWIN=detect_bloda> which reported nothing.

You say that "Command substitution adds arguments to the command line
and does not interfere with pipes" which i also believe is the
intended behaviour and why i have raised this as a potential bug
according to the output from the four examples with <set -xv>. Do they
not show that it is the combination of the pipe and the command
substitution which is not working?

Finally, did you mean that i should try Cygwin 32? or to check that i
was not using Cygwin 32?

Thanks again.

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019