delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/11/06/12:31:10

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6E29A385701C
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1699291868;
bh=1w6Yv5ijr6wLhM9EJSIy/8Vebz8Mv2JsJWdUIv28ddk=;
h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=Fn0gf3sV2Kw0ItW/+7F9JmzZdxwUWliX/WcpBc94oJbfiTWcsafOhd3nhWHWWhwGj
fYDORfWEXQDxp5o6hhwCy5aQdF4/va6UBqQMWprivCRHVWeSpOj5g8oflZXiga47ej
o7W0RRuTWLtJ9BhuMvylb7D3+h0SX77dgRJcC6/k=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5FC1B3858417
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 5FC1B3858417
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699291829; cv=none;
b=deqSUFyeTWLMQZNjAo4WKgjYRZhvHRL8MCGsR2GAT/hqPn6V9cn+Nkv45IIxA/haLNx9u0pngxuMsGHhxjDVt/bHOJy/7DCW7G0fDQlmdqXejoIXoiE/JEE15hAsdNsbVma3RsUdHvfMqClRMXLItuvUKQrzORKWG3RvngVS1C4=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1699291829; c=relaxed/simple;
bh=bZQW6/Cg6atOnIyy+68qvNVGSfrGK9W7Z3nvwUGwZjs=;
h=DKIM-Signature:Date:From:Message-ID:To:Subject:MIME-Version;
b=pNDAfZE2c1g0u2PbM+DYKGuo9eTbohgvfyflRyygLtFaP3zzDRclHVf9vKFx1z1IXIklkVSiBWwSiXG1+xJDxJaDpeiNg3GdtIYPwSWMPo75jSd34ThbfkdlTLLWq0+6TA/SEENmM0NQB1uEERdGLuHSywh9JKSD5jpLalrIv/Q=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-Yandex-Fwd: 1
Date: Mon, 31 Jul 2023 16:36:45 +0300
X-Mailer: The Bat! (v9.3.4) Professional
Message-ID: <1792659841.20230731163645@yandex.ru>
To: Jim Garrison via Cygwin <jhg AT acm DOT org>, cygwin AT cygwin DOT com
Subject: Re: Most git executables are hard links to git.exe?
In-Reply-To: <a5e19263-d820-7737-16eb-16e6429dd586@jhmg.net>
References: <a243a980-66ba-e01e-298a-60a221efd7b4 AT jhmg DOT net>
<ba2c0efe-7892-6eb3-9828-ca8d83643939 AT Shaw DOT ca>
<a5e19263-d820-7737-16eb-16e6429dd586 AT jhmg DOT net>
MIME-Version: 1.0
X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_00, DATE_IN_PAST_96_XX,
DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM,
KAM_THEBAT, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4,
RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP,
T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Andrey Repin via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
Cc: Andrey Repin <anrdaemon AT yandex DOT ru>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

Greetings, Jim Garrison via Cygwin!

> On 07/21/23 14:52, Brian Inglis wrote:
>> On 2023-07-21 14:59, Jim Garrison via Cygwin wrote:
>>> Git comes with over 100 executables, mostly in /usr/libexec/git-core,
>>> that all appear to be *hard* links to /bin/git, in both Cygwin and
>>> Windows. The Windows fsutil command shows they're all hard linked:
> [snip]
>>> I'm curious to know if there's a specific reason for this implementation
>>> that would make it the choice over symbolic links.
>> > For the same reason you are complaining about backups not taking > hardlinks into account: to avoid distributing 400MB instead of 3MB.
>> > Cygwin backup utilities should be able to deal with these e.g. rsync -H, > --hard-links, although it appears xcopy and robocopy may not under > Windows 10; don't know about other utilities or Windows 11.

> But why not use symbolic links to accomplish the same thing?

Adding to the bullet list:
cmd's handling of symbolik links is such that given a symlink path, it would
actually execute the symlink target, thoroughly ruining the executable name
and associated CWD. Making them unusable as command processors in general.


-- 
With best regards,
Andrey Repin
Monday, July 31, 2023 16:33:49

Sorry for my terrible english...


-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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