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

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



If we want to support this feature, why don't we change the meaning of
NO_CLOBBER to mean only non-empty files?  What is the significance of a
0-length file as opposed to a file with contents?

  - Vin

On Wed, Jun 3, 2020 at 8:05 AM Peter Stephenson <p.stephenson@xxxxxxxxxxx>
wrote:

> Martin Tournoij wrote:
> > I switched from tcsh to zsh a while ago (many years too late, I know),
> > and found zsh can do pretty much everything better. There's one thing
> > I rather miss though: the 'notempty' option in 'noclobber'.
>
> This isn't actually hard to implement.  What does everyone else think?
>
> pws
>


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