1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-23 16:40:24 +02:00

46026: Add CLOBBER_EMPTY option.

This commit is contained in:
Peter Stephenson 2020-06-09 18:04:46 +01:00
parent 172b646a6b
commit 3df604a4be
6 changed files with 59 additions and 5 deletions

View file

@ -1168,6 +1168,22 @@ If the option is not set, and the option tt(APPEND_CREATE) is also
not set, `tt(>>!)' or `tt(>>|)' must be used to create a file.
If either option is set, `tt(>>)' may be used.
)
pindex(CLOBBER_EMPTY)
pindex(NO_CLOBBER_EMPTY)
pindex(CLOBBEREMPTY)
pindex(NOCLOBBEREMPTY)
cindex(clobbering, of empty files)
cindex(file clobbering, of empty files)
item(tt(CLOBBER_EMPTY))(
This option is only used if the option tt(CLOBBER) is not set: note that
it is set by default.
If this option is set, then regular files of zero length may be
ovewritten (`clobbered'). Note that it is possible another process
has written to the file between this test and use of the file by
the current process. This option should therefore not be used in
cases where files to be clobbered may be written to asynchronously.
)
pindex(CORRECT)
pindex(NO_CORRECT)
pindex(NOCORRECT)