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

Re: Inconsistent behaviour when removing files on Cygwin

Thread Previous | Thread Next
=?iso-8859-1?b?U+liYXN0aWVu?= Aperghis-Tramoni
October 26, 2005 09:31
Re: Inconsistent behaviour when removing files on Cygwin
Message ID:
Rafael Garcia-Suarez <> 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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About