delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/09/30/12:49:05

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
Reply-To: Cygwin List <cygwin AT cygwin DOT com>
Message-Id: <5.1.0.14.0.20030930123307.0283c890@127.0.0.1>
X-Sender:
Date: Tue, 30 Sep 2003 12:42:40 -0400
To: Matt Swift <swift AT alum DOT mit DOT edu>, Cygwin List <cygwin AT cygwin DOT com>
From: Larry Hall <cygwin-lh AT cygwin DOT com>
Subject: Re: ln and mkshortcut inconsistent in handling of .exe
extension
In-Reply-To: <m2he2vtfqt.fsf@beth.swift.xxx>
References: <5 DOT 1 DOT 0 DOT 14 DOT 0 DOT 20030929161708 DOT 028d6fe0 AT 127 DOT 0 DOT 0 DOT 1>
<5 DOT 1 DOT 0 DOT 14 DOT 0 DOT 20030929161708 DOT 028d6fe0 AT 127 DOT 0 DOT 0 DOT 1>
Mime-Version: 1.0

At 06:02 PM 9/29/2003, Matt Swift you wrote:

>>> "L" == Larry wrote:
>
>    L> 'ln' and 'mkshortcut' have different behavior for a reason.  See 
>    L> <http://cygwin.com/cygwin-ug-net/using-effectively.html#AEN1516>.
>    L> The difference is why 'mkshortcut' exists.  Otherwise, we'd just have
>    L> 'ln' (which is all we had for quite some time until the need for 
>    L> different behavior was realized).
>
>
>
>I had seen that discussion.  I found no discussion of the particular
>interaction of shortcuts/symlinks and the special handling of the .exe
>extension.  To predict the results of the commands I listed, I had to
>experiment.
>
>Second, I still don't understand why `ln' shouldn't behave the way I
>suggested: how is it better the way it is than if `ln -s' never
>created broken shortcuts 


The documentation I directed you to explains why 'ln -s' functions as it
does and from that follows the need for 'mkshortcut'.  'ln -s' doesn't
create 'broken shortcuts'.  It creates symbolic links with UNIX semantics.  
That's the goal.  If you want/need a Windows-style shortcut with all the 
semantics that implies, use 'mkshortuct'.  Is that the point you were 
missing?


>and 'ln' (hardlink) defaulted to a target of
>"foo.exe" when the supplied target "foo" doesn't exist?  


I'm inclined to agree on this.  I think symmetry here would be a good thing.
Still, I haven't done any real investigation of this issue so I was 
withholding any bold proclamation on it.  I'm sure it fits into the 
category of <http://cygwin.com/acronyms/#PTC> if you're inclined to 
investigate further.



--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746                     


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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