Control: severity -1 wishlist
Control: tag -1 wontfix

On Tue, Jan 22, 2019 at 09:40:20AM +1100, Hamish Moffatt wrote:
> [...]
> sponge preserves file permissions (as mentioned in the man page), but
> not the file ownership.
> 
> This is different from shell redirections in bash, which do preserve
> ownership.

yes, you're right.  As 'sponge' is not a shell redirect, and it is not
designed to emulate one, it behaves more like 'tee' than like a shell
redirection.  I do understand that preserving the owner might be a nice
feature, but I think this could work well only if 'sponge' is called
with superuser capabilities (or if installed with suid-bit set).

Why do you think that sponge ought to preserve the owner?  Did the man
page induce that somehow?

Kind regards,
Nicolas

Attachment: signature.asc
Description: PGP signature

Reply via email to