This is the mail archive of the
mailing list for the Cygwin project.
On Wed, Feb 06, 2002 at 08:09:14AM -0800, Michael A Chase wrote:
>----- Original Message -----
>From: "Jorge Goncalvez" <firstname.lastname@example.org>
>Sent: Wednesday, February 06, 2002 02:30
>>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";
>> 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.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html