summaryrefslogtreecommitdiff
path: root/msdos
diff options
context:
space:
mode:
authorLarry Wall <lwall@jpl-devvax.jpl.nasa.gov>1990-08-08 17:07:00 +0000
committerLarry Wall <lwall@jpl-devvax.jpl.nasa.gov>1990-08-08 17:07:00 +0000
commit8725079938ea1a29b3c5fc0c6bbda347bc3f7602 (patch)
tree31031e636a9fda1fcb603050ce6e06aa879f77a9 /msdos
parent79220ce3ebd9c9ac4a99caf508dadef88c26a4e6 (diff)
downloadperl-8725079938ea1a29b3c5fc0c6bbda347bc3f7602.tar.gz
perl 3.0 patch #20 patch #19, continued
See patch #19.
Diffstat (limited to 'msdos')
-rw-r--r--msdos/README.msdos15
1 files changed, 15 insertions, 0 deletions
diff --git a/msdos/README.msdos b/msdos/README.msdos
index fb7be1afe4..2d6a276b78 100644
--- a/msdos/README.msdos
+++ b/msdos/README.msdos
@@ -39,6 +39,21 @@ rest. In particular directory access, redirection (includ-
ing pipes, but excluding the pipe function), system, ioctl
and sleep have been provided.
+[Files currently can be edited in-place provided you are cre-
+ating a backup. However, if the backup coincidentally has
+the same name as the original, or if the resulting backup
+filename is invalid, then the file will probably be trashed.
+For example, don't do
+
+ perl -i~ script makefile
+ perl -i.bak script file.dat
+
+because (1) MS-DOS treats "makefile~" and "makefile" as the
+same filename, and (2) "file.dat.bak" is an invalid filename.
+The files "makefile" and "file.dat" will probably be lost
+forever. Moral of the story: Don't use in-place editing
+under MS-DOS. --rjc]
+
2.1. Interface to the MS-DOS ioctl system call.
The function code of the ioctl function (the second