Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 To: cygwin AT cygwin DOT com X-Injected-Via-Gmane: http://gmane.org/ Path: not-for-mail From: Sam Steingold 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: References: <20020801182416 DOT GD26315 AT redhat 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 Content-Type: text/plain; charset=us-ascii 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 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 > >> > > >> >$ > >> > > >> >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 ) for that reason, CLISP comes with 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 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/