delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/08/01/16:01:51

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
To: cygwin AT cygwin DOT com
X-Injected-Via-Gmane: http://gmane.org/
Path: not-for-mail
From: Sam Steingold <sds AT gnu DOT org>
Newsgroups: gmane.os.cygwin
Subject: Re: bug: hard links to soft links do not work
Date: 01 Aug 2002 16:01:40 -0400
Organization: disorganization
Lines: 53
Message-ID: <sa0ofcml55n.fsf@glip.premonitia.com>
References: <sa0eldimogw DOT fsf AT glip DOT premonitia DOT com> <20020801182416 DOT GD26315 AT redhat DOT com> <sa03ctymnpc DOT fsf AT glip DOT premonitia DOT com> <20020801192104 DOT GA27689 AT redhat DOT com>
Reply-To: sds AT gnu DOT org
NNTP-Posting-Host: 65.114.186.226
Mime-Version: 1.0
X-Trace: main.gmane.org 1028232066 16287 65.114.186.226 (1 Aug 2002 20:01:06 GMT)
X-Complaints-To: usenet AT main DOT gmane DOT org
NNTP-Posting-Date: Thu, 1 Aug 2002 20:01:06 +0000 (UTC)
X-Attribution: Sam
X-Disclaimer: You should not expect anyone to agree with me.
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

> * In message <20020801192104 DOT GA27689 AT redhat DOT com>
> * On the subject of "Re: bug: hard links to soft links do not work"
> * Sent on Thu, 1 Aug 2002 15:21:04 -0400
> * Honorable Christopher Faylor <cgf AT redhat DOT com> writes:
>
> >> On Thu, Aug 01, 2002 at 02:19:11PM -0400, Sam Steingold wrote:
> >> >cygwin does not handle hard and soft links together:
> >> >
> >> >$ echo "foo" > foo
> >> >$ ln foo 1
> >> >$ cat 1
> >> >foo                             ; GOOD!
> >> >$ ln -s 1 2
> >> >$ cat 2
> >> >foo                             ; GOOD!
> >> >$ ln 2 3
> >> >$ cat 3
> >> ><some binary data instead of "foo">
> >> >$
> >> >
> >> >I.e., hard links to soft links do not work.
> >> 
> >> Funny, when I try this on linux, I get:
> >> 
> >>   % ln 2 3
> >>   ln: `2': warning: making a hard link to a symbolic link is not portable
> >
> >indeed - but it works on linux as expected.
> >cygwin should either barf of DTRT.
> >I take your reply to mean that this is not getting changed.
> 
> You can take almost any reply that I make as "Patches gratefully
> accepted."

Okay - you asked for it, you got it.  Almost.
I had to investigate the issue further, and it turned out that cygwin
is not the only system which has this problem, SVR4 being the other.
(see <http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/clisp/clisp/src/m4/ln.m4?rev=HEAD&content-type=text/plain>)

for that reason, CLISP comes with
<http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/clisp/clisp/utils/hln/>
which implements the correct behavior and works on cygwin too.

all you have to do is to look how clisp/utils/hln/ differs from what
you have in cygwin. :-)

thanks.

-- 
Sam Steingold (http://www.podval.org/~sds) running RedHat7.3 GNU/Linux
<http://www.camera.org> <http://www.iris.org.il> <http://www.memri.org/>
<http://www.mideasttruth.com/> <http://www.palestine-central.com/links.html>
Those who value Life above Freedom are destined to lose both.



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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