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

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

Thread Previous | Thread Next
Dan Collins via RT
July 5, 2016 22:47
[perl #24000] perl -pi -e s:foo:foo2: FILE mishandles symlinks?
Message ID:
Confirmed in blead.

I definitely thing this is a bug that needs to be repaired. At minimum, as suggested, I think a warning would be helpful when the target file is a symlink that is not being followed. After all, this is "like sed", as perl -h says. If you're following the link to read the file, you should also follow the link to write it.

via perlbug:  queue: perl5 status: open

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