diff options
author | Larry Wall <lwall@jpl-devvax.jpl.nasa.gov> | 1990-08-08 17:07:00 +0000 |
---|---|---|
committer | Larry Wall <lwall@jpl-devvax.jpl.nasa.gov> | 1990-08-08 17:07:00 +0000 |
commit | 8725079938ea1a29b3c5fc0c6bbda347bc3f7602 (patch) | |
tree | 31031e636a9fda1fcb603050ce6e06aa879f77a9 /msdos | |
parent | 79220ce3ebd9c9ac4a99caf508dadef88c26a4e6 (diff) | |
download | perl-8725079938ea1a29b3c5fc0c6bbda347bc3f7602.tar.gz |
perl 3.0 patch #20 patch #19, continued
See patch #19.
Diffstat (limited to 'msdos')
-rw-r--r-- | msdos/README.msdos | 15 |
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 |