This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: rm seems to fail
broken again/still.
On 1/13/09, Mark J. Reed wrote:
> On Tue, Jan 13, 2009 at 2:52 PM, greenup wrote:
> > your perl test was a nice try; but it also did not remove the file,
> > which is revealing.
> I should have included a return code check:
>
> perl -e 'unlink("goo/foo") or die $!'
>
dz@w2 ~
$ perl -e 'unlink("goo/foo") or die $!'
dz@w2 ~
$ echo $?
0
dz@w2 ~
$ ls -la goo
total 0
drwxr-xr-x+ 2 dz mkgroup-l-d 0 Jan 13 14:47 .
drwxrwx---+ 25 Administrators SYSTEM 0 Jan 13 14:46 ..
-r-------- 1 dz mkgroup-l-d 0 Jan 13 14:47 foo
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/