delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/04/25/06:30:25

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Wed, 25 Apr 2001 12:28:31 +0200
From: Corinna Vinschen <cygwin AT cygwin DOT com>
To: cygwin AT sources DOT redhat DOT com
Subject: Re: Symbol link trouble ?
Message-ID: <20010425122831.M23753@cygbert.vinschen.de>
Mail-Followup-To: Corinna Vinschen <cygwin AT cygwin DOT com>,
cygwin AT sources DOT redhat DOT com
References: <4 DOT 2 DOT 0 DOT 58 DOT 20010425105548 DOT 0177e8a0 AT ics DOT u-strasbg DOT fr>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5i
In-Reply-To: <4.2.0.58.20010425105548.0177e8a0@ics.u-strasbg.fr>; from muller@cerbere.u-strasbg.fr on Wed, Apr 25, 2001 at 11:14:48AM +0200

On Wed, Apr 25, 2001 at 11:14:48AM +0200, Pierre Muller wrote:
> 
>   I have a big problem if I try to redefine an existing symbolic link
> within cygwin environment.
> (I just downloaded the new cygwin version, but it
> does not seem to cure the problem)
> 
> To illustrate the problem, I wrote a little script (file 'test' below)
> It does not seem to depend on the
> shell used
> "sh test" and "bash test"
> give the same result.
> 
>  >>>>>Start of file 'test'
> rm test.h
> echo "First" > first.h
> echo "Second" > second.h
> echo "Creating test.h as a link to first.h"
> ln -s first.h test.h
> ls -l *.h
> echo "Removing test.h"
> rm test.h
> ls -l *.h
> echo "Recreating test.h as a link to second.h"
> ln -s second.h test.h
> ls -l *.h
> echo "cat test.h"
> cat test.h
> echo "cat second.h"
> cat second.h
>  >>>>>End of file 'test'
> 
> What is really strange is that
> the test.h.lnk file that is on disk (and can be seem on normal Dos box)
> does indeed contain the correct name of second.h
> but Cygwin programs seem to still think that the link is to first.h

That's weird. I can't reproduce that on W2K. Does anybody see
the same problem? Which OS?

Corinna
> 
> Secondary questions:
>    are these cygwin links supposed to be Win95 compatible ?
> Because the Windows file explorer does tell em
> that these files are Shortcuts
> but the destination file is empty if I Right klick on the file and select 
> properties!

Aaargh! Really? I don't have any 95 for testing purposes so
I can't look for this. Did you ever think about upgrading to
OSR2, 98, ME, NT, W2K? Ok, ok, seriously, if you can't live
with that, you should set your CYGWIN environment variable to
contain "nowinsymlinks". In that case, the old symlink method
is used again.

Corinna

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

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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