delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/04/20/07:04:31

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Date: Wed, 20 Apr 2005 13:04:17 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Strange linking
Message-ID: <20050420110417.GY16098@cygbert.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <42661D02 DOT 8030603 AT freemail DOT hu>
Mime-Version: 1.0
In-Reply-To: <42661D02.8030603@freemail.hu>
User-Agent: Mutt/1.4.2i

On Apr 20 11:12, Bertalan Fodor wrote:
> Problem with:
> ln -s
> 
> I remove
> /bin/etex
> 
> Create link:
> ln -s /bin/pdfetex.exe /bin/etex
> 
> A link is not created but a copy of /bin/etex.exe
> 
> $ ls -al /bin/etex*
> -rwxr-x---+ 1 fodorb Felhaszn?l?k 280064 Mar 10 15:21 /bin/etex.exe
> 
> $ ln -s /bin/pdfetex.exe /bin/etex
> $ ls -al /bin/etex*
> -rwxr-x---+ 1 fodorb Felhaszn?l?k 280064 Mar 10 15:21 /bin/etex
> -rwxr-x---+ 1 fodorb Felhaszn?l?k 280064 Mar 10 15:21 /bin/etex.exe
> 
> If I remove /bin/etex.exe, the link is created successfully.

The link has been created correctly already the first time you called ln.
The problem is that ls doesn't evaluate the information correctly because
the underlying path handling finds the "tcsh.exe" file before it finds
the "tcsh.lnk" file.

While this is a problem which could be "fixed" in some way in Cygwin, I'm
nevertheless wondering how you want the ambiguity to be solved.  If you
type "etex" on the command line, do you want etex -> pdfetex.exe to be
started or etex.exe?  Regardless how that's solved in Cygwin, it will 
work contrary to the expectations in 50% of the cases.


Corinna

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

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