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:content-transfer-encoding; q=dns; s=default; b=ytQ tpyY+roqIlkHpYM5pAVAvEB0GysMLJPTmYJ6jbtcr7pno2K7orl+Xh/xOqrvn2Tj 1HCRmkRV2RB2wL0mLWbhjrPRKA6L3jiEUWtrcibFTDwVUri1nxzZ9jntQRXsBPyv dCojBDurYF21gOnqr3kQ7j8HsqJwa6HecgO7ZTvY= 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:content-transfer-encoding; s=default; bh=6A6tDOyiR u3p/HL37XnL0TCALj8=; b=hC5end9avD7mhII9R/Xtij8+JtDpbbEWLaqrY7/xa x14QtsfLvP8vD3U5/sEc0hbEepMn0zxtI1/DvKEchWhN78bV6SE5icOBGHKEhvEC bMUO5QJaPCiktkxtNHEV0+9Kk2vn3iw0tnuXbxSg8tv+QMECkw+mS7Msr0quxiRn fA= 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=BAYES_05,FREEMAIL_FROM,LIKELY_SPAM_BODY,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2 spammy=VERY, colleagues, challenge, conclusion X-HELO: mail-it0-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:mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=3ZNC4P6IvZ2GoKnj58XKbTg54Ia/JJjy35ArScSQ3aY=; b=ASudPmkQtodsau87qk7EFYjhbc8Gs9FQGiy8wmklMUZjkbWhCJ0b9jpmE2BZ3wacIW 0AbVDAseVqw3LvxOhtEBXpfowrhTkvEy5CRwJZ/HRutkNUSy+JpOXM9//qKP5YMBoZ0o aFPCdCDLam5Ug3tnUvn376zoopwRAiNSRdnycEik21lDZNUc/j9wI26z0u2awOFjhKjv LQuqEQOrEY35eGUg39vfOYcpk+IETCbqLckS5Aoj7yBWRTgfY7aKU5hgxCMMjVfV99xy cSyFhABQm7touF8cksmGaEjz0WK3lr4stZSWqdKe0dq2MbZ8pXewsyUMMVUIWs2FtzW7 obTA== X-Gm-Message-State: AJaThX4wtqYQs3CAAhQ7mSDVt5y95Npdt+qZMyZglhVzJFMVVgLKKXkb h4uy+M9whhJLD6XIzxrFs6oinDHpgyDfWWkHF83VeQ== X-Google-Smtp-Source: AGs4zMZB0c/bHf2RgBViPBwNWZKqJeeij87D385oo2MOQW58FxWVVfuDd+h0ZUZjSM9Y5FRyWuzi+yiV7siea5rXJHY= X-Received: by 10.107.185.197 with SMTP id j188mr24914887iof.221.1512392460810; Mon, 04 Dec 2017 05:01:00 -0800 (PST) MIME-Version: 1.0 From: =?UTF-8?Q?Erik_Haukj=C3=A6r_Andersen?= Date: Mon, 4 Dec 2017 14:01:00 +0100 Message-ID: Subject: Re: Challenge: a VERY strange problem with command substitution in bash To: cygwin AT cygwin DOT com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id vB4D1HE8003787 Hello I have seen a similar problem on Windows 7, using Cygwin bash version 4.4.12(3)-release (x86_64-unknown-cygwin). After repeating a simplified test on my own host and 6 other colleagues, my conclusion is that the cause is found in BeyondTrust SecureDesktop, which you also may have installed (I saw you wrote something about TrustedInstaller). I have raised an internal case with my IT service desk to resolve the issue (and see what they can do). The observations are as follows, in bash, standing in a subdir with 3 files a,b and c: (The results shown are on a host with SecureDesktop, but the only difference is at the last command) $ ls a b c $ echo $(ls) a b c $ echo $(ls|sort) a b c $ echo "$(ls)" a b c $ echo "$(ls|sort)" $ The problem is seen in the last line, where no output is produced, and the expected output is just like the previous command (the one without the ‘sort’). 3 colleagues also with SecureDesktop sees the same as I do, and 3 other colleagues without SecureDesktop sees the expected result (the last command produces output). Best regards Erik Haukjær Andersen Sr Pncpl Software Developer -- 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