projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c8ddff
)
make a note in perlrun that -i doesn't preserve UNIX hard links.
author
Dave Mitchell
<davem@fdisolutions.com>
Fri, 23 Jul 2004 21:15:32 +0000
(21:15 +0000)
committer
Dave Mitchell
<davem@fdisolutions.com>
Fri, 23 Jul 2004 21:15:32 +0000
(21:15 +0000)
p4raw-id: //depot/perl@23159
pod/perlrun.pod
patch
|
blob
|
history
diff --git
a/pod/perlrun.pod
b/pod/perlrun.pod
index
e730530
..
be366f8
100644
(file)
--- 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