Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Any way to allow clobbering empty files when noclobber is set?
- X-seq: zsh-workers 45980
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Any way to allow clobbering empty files when noclobber is set?
- Date: Fri, 5 Jun 2020 03:18:04 +0000
- Cc: "zsh-workers@xxxxxxx" <zsh-workers@xxxxxxx>, Martin Tournoij <martin@xxxxxxxxxx>
- In-reply-to: <20200605031013.16a36d31@tarpaulin.shahaf.local2>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CGME20200603020919eucas1p13e26ebcbb335784d14bfb97b137f385a@eucas1p1.samsung.com> <89aed74d-db7b-47ad-b218-8158838049e9@www.fastmail.com> <94e73ebcf39d4d3f9c7ae257b1d75d16@CAMSVWEXC01.scsc.local> <20200604014850.52d241bd@tarpaulin.shahaf.local2> <CAH+w=7a0s5BhBWRHReD1oGkKLkxVt8rs+kZQu9Dg0-efaKuYtg@mail.gmail.com> <a36ec51a-6f76-454f-9a1a-327557de3223@www.fastmail.com> <CAH+w=7bwKvJ7F4JCu7CUuTVxivy8OScCFwN97DKnK9M9QXqVSA@mail.gmail.com> <20200605031013.16a36d31@tarpaulin.shahaf.local2>
Daniel Shahaf wrote on Fri, 05 Jun 2020 03:10 +0000:
> P.S. In the pre-revprop-change example, the sysadmin should have
> downloaded the file to a temporary name and then atomically renamed it
> into place. Some syntactic sugar for this pattern this might be nice…
The pattern I'm referring to is just the "Spool some data to disk to a
temporary name, and then atomically rename(2) it into place" part, not
the "download" part.
Cheers,
Daniel
Messages sorted by:
Reverse Date,
Date,
Thread,
Author