X-Spam-Check-By: sourceware.org
Date: Wed, 24 Jan 2007 10:48:10 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: ln -s exe magic (coreutils 6.7-2)
Message-ID: <20070124094810.GN27843@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <011701c73f43$3d07d270$3e0010ac@wirelessworld.airvananet.com> <20070124043651.GF25379@ns1.anodized.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20070124043651.GF25379@ns1.anodized.com>
User-Agent: Mutt/1.4.2.2i
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@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

On Jan 23 20:36, Christopher Layne wrote:
> On Tue, Jan 23, 2007 at 06:07:17PM -0500, Pierre A. Humblet wrote:
> > /usr/sbin: ls -l sendmail*
> > lrwxrwxrwx 1 p-humblet sw 13 Jan 23 17:40 sendmail -> /usr/bin/exim*
> > lrwxrwxrwx 1 p-humblet sw 19 Jan 23 17:29 sendmail.exe -> /usr/sbin/ssmtp.exe*
> > 
> > so that the commands "sendmail" and "sendmail.exe" produce different results,
> > cron keeps using exim and if  exim is uninstalled then cron misbehaves.
> > 
> > My suggestion is that by default ln -s should not do any magic. If some magic is
> > desired, users can define an alias or shell function that adds --enable-exe-magic
> > 
> > Pierre
> 
> Probably just an oversight (in regards to symlinks) in the code handling .exe
> vs extentionless executables. It's there to allow both options for an executable to
> be named. I'm sure Corinna or Christopher will know what the deal is.

This looks rather like a problem with the exe magic in coreutils.  FWIW,
I never liked the idea to create "foo.exe.lnk" symlinks.  They only slow
down the symlink processing in Cygwin.


Corinna

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

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

