www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/09/06/05:54:24

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,TW_LR,TW_RW,TW_WX,TW_XR,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <20100906090517.GA13174@calimero.vinschen.de>
References: <AANLkTikj2JyMfy-eXk2fOBzcNAWAzoKYb7s_q20hP0d7 AT mail DOT gmail DOT com> <20100906090517 DOT GA13174 AT calimero DOT vinschen DOT de>
Date: Mon, 6 Sep 2010 11:53:34 +0200
Message-ID: <AANLkTi=RVdbjKMjqNjw-vte+9YVbd3OXW1Mwmrw=mCJh@mail.gmail.com>
Subject: Re: .exe magic reloaded
From: Al <oss DOT elmar AT googlemail DOT com>
To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

It does not:

> It does:
>
> =A0$ cd tmp
> =A0$ mkdir dir1 dir2
> =A0$ cp /bin/echo.exe dir1
> =A0$ ln -s `pwd`/dir1/echo.exe dir2/echo
> =A0$ ls -l dir*
> =A0dir1:
> =A0total 52
> =A0-rwxr-xr-x 1 corinna vinschen 49166 2010-09-06 10:59 echo.exe
>
> =A0dir2:
> =A0total 1
> =A0lrwxrwxrwx 1 corinna vinschen 31 2010-09-06 11:00 echo -> /home/corinn=
a/tmp/dir1/echo.exe
> =A0$ dir2/echo hello
> =A0hello
> =A0$ /home/corinna/tmp/dir2/echo hello
> =A0hello
>

$ /home/corinna/tmp/dir2/echo.exe hello
bash: /home/corinna/tmp/dir2/echo.exe: No such file or directory

That's what Perls "Configure" does. Still the magic works only in the
target directory, but not on the level of the symlink itself.

Al

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019