From: Dave Mitchell Date: Fri, 23 Jul 2004 21:15:32 +0000 (+0000) Subject: make a note in perlrun that -i doesn't preserve UNIX hard links. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a66b22caf4f0cb9d9cd0ec14a50f27dd54688a86;p=p5sagit%2Fp5-mst-13.2.git make a note in perlrun that -i doesn't preserve UNIX hard links. p4raw-id: //depot/perl@23159 --- diff --git a/pod/perlrun.pod b/pod/perlrun.pod index e730530..be366f8 100644 --- a/pod/perlrun.pod +++ b/pod/perlrun.pod @@ -533,6 +533,10 @@ folks use it for their backup files: $ perl -pi~ -e 's/foo/bar/' file1 file2 file3... +Note that because B<-i> renames or deletes the original file before +creating a new file of the same name, UNIX-style hard links will not be +preserved. + Finally, the B<-i> switch does not impede execution when no files are given on the command line. In this case, no backup is made (the original file cannot, of course, be determined) and processing