From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 59280 invoked by alias); 3 Mar 2020 17:34:07 -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 59265 invoked by uid 89); 3 Mar 2020 17:34:07 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-6.9 required=5.0 tests=BAYES_00,GIT_PATCH_2,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy= X-HELO: mout.kundenserver.de Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (212.227.126.134) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 03 Mar 2020 17:34:04 +0000 Received: from addc1.ad.local.emrich-ebersheim.de ([24.134.13.209]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1N3bnP-1jZH4N44ax-010ZQk for ; Tue, 03 Mar 2020 18:34:01 +0100 Received: from localhost (localhost [127.0.0.1]) by addc1.ad.local.emrich-ebersheim.de (Postfix) with ESMTP id 570BE282853; Tue, 3 Mar 2020 18:34:00 +0100 (CET) Received: from addc1.ad.local.emrich-ebersheim.de ([127.0.0.1]) by localhost (addc1.ad.local.emrich-ebersheim.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QgHbLFH0kGl5; Tue, 3 Mar 2020 18:33:58 +0100 (CET) Received: from [IPv6:2a02:8106:22a:130d:8c81:a787:abfc:8c10] (unknown [IPv6:2a02:8106:22a:130d:8c81:a787:abfc:8c10]) by addc1.ad.local.emrich-ebersheim.de (Postfix) with ESMTPS id 4FDE828284B; Tue, 3 Mar 2020 18:33:58 +0100 (CET) Subject: Re: Change in logical link behaviour To: cygwin@cygwin.com References: <30792264-c452-7ea2-c83f-f368322387ea@emrich-ebersheim.de> <20200302164851.GS4045@calimero.vinschen.de> <20200303133925.GA4045@calimero.vinschen.de> <29f11aed-a529-c88b-af5d-3607f4959871@emrich-ebersheim.de> <20200303143117.GB4045@calimero.vinschen.de> <20200303154913.GD4045@calimero.vinschen.de> <99c7b27b-9ea8-cf1e-d5ce-afc685246f97@emrich-ebersheim.de> <20200303164124.GE4045@calimero.vinschen.de> From: Rainer Emrich Message-ID: Date: Tue, 03 Mar 2020 21:43:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <20200303164124.GE4045@calimero.vinschen.de> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="IAfZdbIazYkl99qGgImjJN4z1smGMGrpD" X-SW-Source: 2020-03/txt/msg00056.txt --IAfZdbIazYkl99qGgImjJN4z1smGMGrpD Content-Type: multipart/mixed; boundary="n1jW2cK5Kl5hXSdfQtBNUB7g3ubWsTa6O" --n1jW2cK5Kl5hXSdfQtBNUB7g3ubWsTa6O Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: quoted-printable Content-length: 1719 Am 03.03.2020 um 17:41 schrieb Corinna Vinschen: > On Mar 3 17:05, Rainer Emrich wrote: >> Am 03.03.2020 um 16:49 schrieb Corinna Vinschen: >>> On Mar 3 15:31, Corinna Vinschen wrote: >>>> On Mar 3 15:19, Rainer Emrich wrote: >>>>> Am 03.03.2020 um 14:39 schrieb Corinna Vinschen: >>>>>> Aha! So powershell does not show the 'l'. >>>>> The most important thing is the difference between cygwin 3.0.7 and >>>>> cygwin 3.1.4. For cygwin 3.0.7 the link indicator is shown even in >>>>> powershell on Windows 7 but not with cygwin-3.1.4. And believe me, the >>>>> only difference is the cygwin version. >>>> >>>> I may believe you, but believe me that Cygwin has no influence on >>>> what powershell shows. See the output of cmd /c dir /a. The file >>>> is a native symlink. >>> >>> ...and for kicks I just tried this on W7 under Cygwin 3.0.7. The output >>> is the same as I pasted in https://cygwin.com/ml/cygwin/2020-03/msg0004= 3.html >>> >>> No 'l' mode flag, no 6th column in the mode output: >>> >>> Mode LastWriteTime Length Name >>> ---- ------------- ------ ---- >>> -a--- 03.03.2020 16:47 0 bar >>> >>> >> For me it's different. That's realy strange. >> >> Ok, so I can't rely on powershell here. Is there a recommended procedure >> for what I try in a script? >> >> Check if the current cygwin environment is able to create native symlink= s. >=20 > Unless I'm missing some new and shiny Windows onboard tool, that's > surprisingly tricky without creating your own executable checking just > that. Off the top of my head I don't see any other way than calling cmd > /c dir and some awk or sed hacking. Thank you, that's what I thought. Rainer --n1jW2cK5Kl5hXSdfQtBNUB7g3ubWsTa6O-- --IAfZdbIazYkl99qGgImjJN4z1smGMGrpD Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" Content-length: 833 -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEQq4BT9NfW50eSlCTkX2ILOIqatIFAl5elQEACgkQkX2ILOIq atLCDxAAg0Ck1JCltneszQzE+6Qp41Nzrrfag2kucTyRKacdDlQNAZ72k9QQksGF ebczt5HNVb+cy4NtkRDQjY3acnX59XwiNlLU05lWQjO9AcYjiLgAdPgUvo5Gg+T7 XxrkOBbxX7A0uA1xwTEasZtsdmAg19zHGYIQlcJpdkdgZcrHOOmqfnf4RnIsOIzw cXTOwarkIk/tf9NQuZakHqanpq0lFSoMCNAuJfCTRgNNQWMoA2UOpbo985DyA/8E 591BQGhcBlvMIVb6c1O0Dk+QMdlFOHLJWbuLQ7miebB5pkMN1bM+jqugC0iTJ7t4 3hEq67VJxFHfZ+yXuTmg/0xlYWHP3RG13TfCu5p4on/0TISs2a12FXImq2xrbWBs 9zxTmNAsS0qN42pPaOVzUyP2croTIc8i9VP1hjghrD+oN7qU/L0igpggjx8Q8iIG KwurCdoC5XVMDDtkaw6noTHIZiyfg58qMeg0UJ1vaM6IrgwMjjvK3Yhj3+i9isbi RM3wlSNEPC2hVOIRW4kUG6uZdN3f71qtnc7132u8cYMOqWFrSlmd07036QjGwiEb w73HULUlxBCxyAjPBM4wvwOD19kGP8spzyPhkERRz8pICcH+K4UpJoPzMtPbBdXM x0Uf8Mi5s0K1x2dXYbuuN/sue8LRwF96BNfI89RXD/PgzRz/zSQ= =e8cT -----END PGP SIGNATURE----- --IAfZdbIazYkl99qGgImjJN4z1smGMGrpD--