Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-Id: <200202061030.LAA28866@cabs40.col.bsf.alcatel.fr> Date: Wed, 6 Feb 2002 11:30:43 +0100 (MET) From: Jorge Goncalvez Reply-To: Jorge Goncalvez Subject: Re:symlinks To: cygwin AT cygwin DOT com MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Content-MD5: ly5n/saWNbbJgD3PTA5aKg== X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.4.2 SunOS 5.8 sun4u sparc 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. -- 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/