X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Eric Blake <ebb9@byu.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@wirelessworld.airvananet.com> 	 <20070124043651.GF25379@ns1.anodized.com> 	 <20070124094810.GN27843@calimero.vinschen.de> 	 <45B76311.1000009@byu.net> 	 <20070124143821.GQ27843@calimero.vinschen.de> 	 <461A3A14.8090702@byu.net> <461A91B1.2984D418@dessent.net> 	 <9909394.post@talk.nabble.com> <31b7d2790704171422i164d4583sfde9c0a4609f9781@mail.gmail.com>
Mime-Version:  1.0
Content-Type:  text/plain; charset=us-ascii
Content-Transfer-Encoding:  7bit
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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/

