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

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



On Wed, Jun 3, 2020 at 5:05 AM Peter Stephenson
<p.stephenson@xxxxxxxxxxx> wrote:
>
> Martin Tournoij wrote:
> > I rather miss though: the 'notempty' option in 'noclobber'.
>
> This isn't actually hard to implement.  What does everyone else think?

Gmail thinks ".dif" is a spreadsheet, and MacOS thinks it's a video.

More seriously ... what, if any, effect ought this have on "command >>
nonexistent" ?

I'm not familiar with the tcsh variation of this.  Does it matter if
the file is a symlink?

Should this be done with open()-then-fstat() as is done for
non-regular files instead of stat()-then-open(), to avoid race
conditions?



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