develooper Front page | perl.perl5.porters | Postings from March 2016

[perl #127663] Safety for -i option

Thread Next
From:
Tony Cook via RT
Date:
March 8, 2016 00:10
Subject:
[perl #127663] Safety for -i option
Message ID:
rt-4.0.18-20162-1457395802-788.127663-15-0@perl.org
On Sun Mar 06 02:32:46 2016, jiangyy@outlook.com wrote:
> the file-system runs out of space (when the replaced text is longer)

It isn't necessary for the replaced text to be longer.

We're unlinking the file, but keeping a file handle open to it.  On a POSIX system the file will continue to take space until the file handle is closed.

Tony

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=127663

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