Hi, On Thu, Apr 18, 2019 at 10:42:54PM +0200, Nicolas Schier wrote: > Why do you think that sponge ought to preserve the owner? Did the man > page induce that somehow?
I was caught out by this just now, and got as far as "bugreport moreutils" before I found this existing bug. When I read "preserves permissions" in the man page, my brain just went on auto-pilot and assumed this meant ownership as well. I think this is encouraged along by a common use-case of sponge as a replacement for IO redirection, which as Hamish already noted does preserve ownership. I appreciate there is room for difference of opinion here over what behaviour is surprising or not, but I don't think it is just Hamish and I who would get surprised. So if preserving ownership is considered not the job of sponge then perhaps this could be called out in the man page near where it currently says that permissions are preserved? Thanks, Andy

