Mail Archives: cygwin/2017/07/28/03:26:46
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:subject:to:references:from:message-id:date
|
| :mime-version:in-reply-to:content-type; q=dns; s=default; b=fwCD
|
| dvzgV/RuJE80IYGlAywLpNfwtMl86l+AuycPi3e7PrQlRSngAUEVm0r3k2oZdh8I
|
| TexmXQIgBnOy97VMmoEFKMMRVRxOE4GyHgOjXnx+ghkIogRVKMj9KJwLEttVC9fB
|
| mtPu8MWfpzw0NM/fry0b8mdeuX4wh+kmJjsyAPs=
|
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:subject:to:references:from:message-id:date
|
| :mime-version:in-reply-to:content-type; s=default; bh=USXSIZLh/T
|
| yPIi/frMP4FFQdhA4=; b=Eya3DMXEcumgLewv/I/78XgrFysdjY0LRJ1JlsAReY
|
| ZPL5/tdXqWwDEzcxWUXOHWecMUnKLmBJu3N7q4KHRz5kwkmm9nvRF+cmQOTkD8PU
|
| 86TnOH6H5VJ7FuTSyXgkAqUrXjTgzTPaxdjR2eVXWB8+6srJpp3MfJtwBiNIDwmW
|
| 4=
|
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.6 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=ineffective, swear, Antivirus, firewall
|
X-HELO: | smtp01.udag.de
|
Subject: | Re: Challenge: a VERY strange problem with command substitution in bash
|
To: | cygwin AT cygwin DOT com
|
References: | <93b0a4e1-78eb-798e-9946-cd38ab288cce AT wagner DOT is> <20170711232506 DOT 02CE91C3666 AT atlantis DOT udag DOT de>
|
From: | =?UTF-8?Q?J=c3=bcrgen_Wagner?= <juergen AT wagner DOT is>
|
Message-ID: | <cad625b1-7d70-834d-3d80-fd0d72d03a38@wagner.is>
|
Date: | Fri, 28 Jul 2017 09:26:20 +0200
|
User-Agent: | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1
|
MIME-Version: | 1.0
|
In-Reply-To: | <20170711232506.02CE91C3666@atlantis.udag.de>
|
X-IsSubscribed: | yes
|
--------------ms070803020305030808040008
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Content-Language: en-US
Hello,
I apologize for not responding earlier - but a project kept me overly
busy, so extra cycles to reply here were not available.
The winner is: Richard Beels. Yes, you are right. Comodo was the source
of my problems.
What's funny is that when I migrated to Win10, I ran into this before
and had it fixed using some magic settings in Comodo. Magic because the
way the setting needed to be made to really work was against logic.
Now, just prior to my posting, the problem re-occurred, so I naturally
did not think of Comodo again causing this.
As it turns out, the culprit was a Windows Update that somehow undid the
settings in Comodo that I had carefully made before.
In the meantime, I had another run of Windows Update that influenced the
function of the Comodo firewall - resulting in rendering it partially
ineffective until reboot.
So, thanks for the quick feedback to all... yes, I managed to fix it again.
And for the record:
- Comodo Antivirus has not caused any problems.
- Comodo Auto-containment is fine, you may just want to exclude Cygwin
from the applications that may be contained. Not essential, though.
- Comodo HIPS I have on paranoid mode, anyway, just don't suppress any
pop-ups.
- Comodo VirusScope should only affect contained applications.
- Comodo Website Filterings is not really relevant, but I have it OFF,
anyway.
- Comodo Firewall has not caused any problems.
So, that's it? No. in the settings of Comodo, there is another section
"Advanced Protection" with the ominous title "Miscellanous".
- Heuristics: can cause issues with some scripts, I have it turned off.
- Detection of shellcode injections breaks some Cygwin mechanisms, turn
it off.
So, that's it? No. The shellcode injections option actually has a list
of exclusions.
If you simply turn the feature off, it won't help making Cygwin work.
You have to explicitly enable it, add all applications to the exclusion
list, then disable it.
Et voil=C3=A1! Cygwin works.
Cheers,
--J=C3=BCrgen
On 12.07.2017 01:22, Richard Beels via cygwin wrote:
> At 07/11/2017 at 15:12, Shakespearean monkeys danced on J=C3=83=C2=BCrgen
> Wagner's keyboard and said:
>> ...
>> Using backquotes instead of the command substitution with $(...) does
>> not change the results. I could swear this did work in an earlier
>> version of Cygwin on my Windows 7 machine.
>>
>> I tried this to see if the code in the parentheses is executed at all:
>>
>> $ value=3D"$( date 2> foo | cat )"; echo "$? <$value>"
>>
>> The file "foo" was not created, i.e., it seems the commands don't
>> really get executed.
>>
>> $ value=3D"$( date && pwd )"; echo "$? <$value>"
>> 0 <Tue Jul 11 20:49:09 CEST 2017
>> /home/juergen>
>>
>> $ value=3D"$( date || pwd )"; echo "$? <$value>"
>> 0 <Tue Jul 11 20:32:27 CEST 2017>
>>
>> both work, so some control structures seem to be permissible... just
>> not a pipe.
>>
>> What is going on? Some misconfiguration? A Cygwin bug? Some
>> interaction with something weird in Windows 10? I am at loss to
>> understand what could be wrong... and am now most curious whether
>> anybody has an idea what is causing this. Does it work/not work in
>> the same way in your Cygwin installation?
>>
>> I came across this effect because ssh-host-config did not recognize
>> me as administrator anymore. It's due to a check for a certain user
>> group that uses a command substitution with a pipe. Replacing this
>> with an equivalent command works. The original line used "id -G" and
>> then a "grep -Eq" to check whether a certain group is on that list.
>>
>> I am VERY curious now! I've rarely been puzzled that much by such a
>> very elementary shell expression (looking back at 34 years of Unix
>> experience).
>
>
> Hi Jurgen.
>
> 90% chance it's what is called bloda in these parts. It's in the FAQ
> on cygwin.com. I'll go out on a limb and say you might have just
> installed/changed your AV/Firewall software.
>
> And if I want to be super-psychic, can I guess comodo? Because I just
> changed to comodo a couple weeks ago and had the same subshell/command
> substitution/pipeline errors you're mentioning.
>
> If so, you need to exclude your cygwin folder from AV scanning.
> AND... if the software does whitelisting or host intrusion protection
> (HIPS) or "run unknown executables in a container/sandbox" or
> something similar, you also need to trust all the executables, too.=20
> Or switch to something else that doesn't trip cygwin's trigger.
>
> After doing that and a rebaseall, I haven't had a fork error in a
> week. I can't wait to run setup and come up with an update process,
> though...
>
> Cheers!
>
>
> --=20
> 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
>
>
--------------ms070803020305030808040008
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature
MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG
9w0BBwEAAKCCCxswggUtMIIEFaADAgECAhBEyQFSvmpDYoqfvaqpCvnqMA0G
CSqGSIb3DQEBCwUAMIGXMQswCQYDVQQGEwJHQjEbMBkGA1UECBMSR3JlYXRl
ciBNYW5jaGVzdGVyMRAwDgYDVQQHEwdTYWxmb3JkMRowGAYDVQQKExFDT01P
RE8gQ0EgTGltaXRlZDE9MDsGA1UEAxM0Q09NT0RPIFJTQSBDbGllbnQgQXV0
aGVudGljYXRpb24gYW5kIFNlY3VyZSBFbWFpbCBDQTAeFw0xNzA3MDIwMDAw
MDBaFw0xODA3MDIyMzU5NTlaMCIxIDAeBgkqhkiG9w0BCQEWEWp1ZXJnZW5A
d2FnbmVyLmlzMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAs25A
CMX6bAZQKKCm2iVGdrabIOo7GDmry3CK7lOZ8RKJdJg3HU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