develooper Front page | perl.perl5.porters | Postings from October 2005

Re: Inconsistent behaviour when removing files on Cygwin

Thread Previous | Thread Next
From:
=?iso-8859-1?b?U+liYXN0aWVu?= Aperghis-Tramoni
Date:
October 26, 2005 09:31
Subject:
Re: Inconsistent behaviour when removing files on Cygwin
Message ID:
1130344303.435faf6f5b5bf@imp5-g19.free.fr
Rafael Garcia-Suarez <rgarciasuarez@mandriva.com> wrote:

> S├ębastien Aperghis-Tramoni wrote:
>
> > [This] is wrong because if unlink() doesn't return an error, the file is
> > supposed to be deleted. -f indeed says that the file is not present, but
> > readdir() still lists it. Who should I believe?
>
> What says -e ?

Same thing.

> > I can't test but based on previous experiments, ActivePerl is more
> > consistent as unlink() fails and the file is not removed.
>
> Cygwin and Win32 are whole different platforms. :)

Yes, I know that Cygwin pretends to be a Unix but it actually inherit
many constraints from Win32, as this hateful file locking. The problem
here is that in the case of unlink(), Cygwin is inconsistent: it doesn't
behave like a Unix program and doesn't behave like a Win32 program.


--
S├ębastien Aperghis-Tramoni

Close the world, txEn eht nepO.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About