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

Re: [perl #24000] perl -pi -e s:foo:foo2: FILE mishandles symlinks?

Tony Cook
July 6, 2016 00:29
Re: [perl #24000] perl -pi -e s:foo:foo2: FILE mishandles symlinks?
Message ID:

On Tue, Jul 05, 2016 at 08:14:11PM -0400, Dan Collins wrote:
> Well then, I suppose it is just my expectations that are defective. ;) Is
> there a place to document this better, or should we just mark this rejected?

From the -i documentation:

 Note that because B<-i> renames or deletes the original file before
 creating a new file of the same name, Unix-style soft and hard links will
 not be preserved.

which might be re-worded or expanded on.

Tony Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About