delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/02/22/05:53:04

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Thu, 22 Feb 2001 11:51:42 +0100
From: Corinna Vinschen <cygwin AT cygwin DOT com>
To: cygwin <cygwin AT cygwin DOT com>
Subject: Re: [ANNOUNCEMENT]: Important change to symbolic link functionality
Message-ID: <20010222115142.H908@cygbert.vinschen.de>
Mail-Followup-To: cygwin <cygwin AT cygwin DOT com>
References: <20010221232921 DOT X908 AT cygbert DOT vinschen DOT de> <21157045389 DOT 20010222102353 AT logos-m DOT ru>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5i
In-Reply-To: <21157045389.20010222102353@logos-m.ru>; from deo@logos-m.ru on Thu, Feb 22, 2001 at 10:23:53AM +0300

On Thu, Feb 22, 2001 at 10:23:53AM +0300, Egor Duda wrote:
> i  haven't  looked  at new implementation yet, but i know at least one
> problem  with  the  way  explorer  treats  .lnk  files.  if you create
> shortcut  b.lnk pointing to file a.exe and then create (with explorer)
> shortcut  c.lnk,  pointing  to  b.lnk, explorer automatically resolves
> c.lnk  and make it point to a.exe! (Duh, that "optimizers" at microsoft
> made a good "gift" to sysadmins)
> 
> Wouldn't it be a problem here? won't explorer spoil symlink-to-symlink
> by just opening it? 

No.

When you create a shortcut in Explorer it always contains the full
pathname to the target.

When creating a relative link in Cygwin or U/WIN the shortcut contains
a relative path.
When you open the "Properties" window of that link in Explorer it will
try to resolve the relative path and it will show the target path again
in absolute notation. It will _not_ change the content of the shortcut.

When you create a symlink/shortcut in Cygwin which in turn points to a
shortcut it will remain this way. Explorer tries to resolve the path
again but it will not show any target path for some reason. There's
still a difference in the shortcuts created by Cygwin in contrast to
shortcuts created by U/WIN. I will try to figure out what it is.

However, Explorer only changes the shortcut content only when you
change it by yourself in the shortcu properies dialog.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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