delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/07/07/01:36:50

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-3.4 required=5.0 tests=AWL,BAYES_40,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Date: Wed, 7 Jul 2010 01:36:37 -0400 (EDT)
From: Eric Blake <eblake AT redhat DOT com>
To: Linda Walsh <cygwin AT tlinx DOT org>
Cc: cygwin AT cygwin DOT com
Message-ID: <950438242.402151278480997561.JavaMail.root@zmail04.collab.prod.int.phx2.redhat.com>
In-Reply-To: <4C33C8C5.7020702@tlinx.org>
Subject: Re: ln -- is there a way to get the old behavior back? (ENV var?)
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

----- "Linda Walsh" <cygwin AT tlinx DOT org> wrote:

> Is there a way to get back the previous 'ln' behavior and have
> it create a NTFS hard link?  The new behavior -- having it create
> a hardlink that works only in cygwin is less than useful to me, since
> I use cygwin to maintain windows.

Huh?  If your file system allows the creation of hard links,
such as NTFS, then those hard links are visible to any other
use of that file system (whether it be other windows but
non-cygwin processes, or even remote access of a network-based
file system); there is nothing cygwin-specific about
that.  Perhaps you are confusing things with cygwin symlinks,
where we really do have to have cygwin-specific behavior?
Remember, ln can be used to create both hard links and symlinks,
but while symlinks can be emulated on any file system (at the
expense of being cygwin-specific), hard links require
underlying fs support (and hence fails on FAT, which lacks
that support).

As is, your question didn't make much sense to me; please
show a transcript of exact command line sequences showing what you
are trying to accomplish and why you think that cygwin isn't
doing the right thing, rather than just describing it in words.

-- 
Eric Blake   eblake AT redhat DOT com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

--
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

- Raw text -


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