summaryrefslogtreecommitdiff
path: root/pod/perlrun.pod
diff options
context:
space:
mode:
authorDave Mitchell <davem@fdisolutions.com>2004-07-23 21:15:32 +0000
committerDave Mitchell <davem@fdisolutions.com>2004-07-23 21:15:32 +0000
commita66b22caf4f0cb9d9cd0ec14a50f27dd54688a86 (patch)
tree8eaa29093911410700eb5735e17e8af30310be53 /pod/perlrun.pod
parent2c8ddff3c182e26372c9343750c9b3c45e438ca2 (diff)
downloadperl-a66b22caf4f0cb9d9cd0ec14a50f27dd54688a86.tar.gz
make a note in perlrun that -i doesn't preserve UNIX hard links.
p4raw-id: //depot/perl@23159
Diffstat (limited to 'pod/perlrun.pod')
-rw-r--r--pod/perlrun.pod4
1 files changed, 4 insertions, 0 deletions
diff --git a/pod/perlrun.pod b/pod/perlrun.pod
index e730530f65..be366f8afd 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