www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/02/06/12:33:56

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Wed, 6 Feb 2002 12:31:01 -0500
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Re:symlinks
Message-ID: <20020206173101.GF31367@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <200202061030 DOT LAA28866 AT cabs40 DOT col DOT bsf DOT alcatel DOT fr> <005001c1af29$a7d66490$0d00a8c0 AT mchasecompaq>
Mime-Version: 1.0
In-Reply-To: <005001c1af29$a7d66490$0d00a8c0@mchasecompaq>
User-Agent: Mutt/1.3.23.1i

On Wed, Feb 06, 2002 at 08:09:14AM -0800, Michael A Chase wrote:
>----- Original Message -----
>From: "Jorge Goncalvez" <goncal11 AT col DOT bsf DOT alcatel DOT fr>
>To: <cygwin AT cygwin DOT com>
>Sent: Wednesday, February 06, 2002 02:30
>Subject: Re:symlinks
>
>>Hi, I have made a symlink with the cygwin command ln -s and i wanted to
>>remove it by Perl code:
>> I have this:
>> $PROG2 = "C:\\cygwin\\bootp\\linux\\install ";
>> if (-l $PROG2)
>> {
>>
>>   system "rm $PROG2";
>>
>>  }
>>  else{
>>  print "popo";
>>  }
>>
>>The problem is that the symlink install it isn't removed althought it
>>is present with ls -l in the good directory?  Why?  I tested my rm
>>command by hand and it works it seems -l not working.  Thanks.
>
>Have you tried Perl's unlink()?

I wondered the same thing.  I'd also suggest using cygwin paths with '/'
and no c: rather than the above.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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