Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Any way to allow clobbering empty files when noclobber is set?



The regular noclobber can use O_CREAT | O_EXCL to avoid races. How
would any of the proposed modifications work? That is, how to
implement unlink-if-empty without ever unlinking non-empty files? Or
how to implement clobber-if-empty without ever clobbering non-empty
files?

Roman.



Messages sorted by: Reverse Date, Date, Thread, Author