delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/04/18/11:13:18

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Eric Blake <ebb9 AT byu DOT net>
Subject: Re: ln -s exe magic (coreutils 6.7-2)
Date: Tue, 17 Apr 2007 23:04:46 +0000 (UTC)
Lines: 42
Message-ID: <loom.20070418T005803-785@post.gmane.org>
References: <011701c73f43$3d07d270$3e0010ac AT wirelessworld DOT airvananet DOT com> <20070124043651 DOT GF25379 AT ns1 DOT anodized DOT com> <20070124094810 DOT GN27843 AT calimero DOT vinschen DOT de> <45B76311 DOT 1000009 AT byu DOT net> <20070124143821 DOT GQ27843 AT calimero DOT vinschen DOT de> <461A3A14 DOT 8090702 AT byu DOT net> <461A91B1 DOT 2984D418 AT dessent DOT net> <9909394 DOT post AT talk DOT nabble DOT com> <31b7d2790704171422i164d4583sfde9c0a4609f9781 AT mail DOT gmail DOT com>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

DePriest, Jason R. <jrdepriest <at> gmail.com> writes:

> Will your proposed changes in coreutils fix the following problem I
> just discovered today?

This is the exact same problem documented earlier in this thread, and yes, 
coreutils-6.9-1 will fix it (I'm getting closer; I've finally completed my 
testing of my ln enhancements, but still need to test my postinstall script).

> 
> Create a symbolic link
> ln -s /usr/bin/foo /foo
> where /usr/bin/foo is really usr/bin/foo.exe
> 
> ls -l /foo
> returns
> foo -> /usr/bin/foo.exe

Try ls -l --append-exe /foo, to see the truth - rather than creating "/foo", 
the broken .exe magic in ln 6.7 created "/foo.exe", but then the auto-exe magic 
in other commands (such as ls) means that 'ls foo' succeeds even if it had to 
do 'ls foo.exe' under the hood.

> 
> rm /foo
> fails with
> No such file or directory

rm intentionally doesn't do .exe magic.  Last time I tried to do that, it broke 
libtool.

> 
> So I was baffled that the .exe was required since at no point in my
> link creating process did I reference a .exe on the end of the files.

Which is why I'm changing 6.9 to not stick implicit .exe on the end of symlinks.

-- 
Eric Blake
volunteer cygwin coreutils maintainer




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