Package: moreutils
Version: 0.60-1
Severity: normal

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.


root@rs3:~# ls -l foo
-rw-r--r-- 1 hamish hamish 0 Jan 22 09:39 foo

root@rs3:~# echo hi > foo
root@rs3:~# ls -l foo
-rw-r--r-- 1 hamish hamish 3 Jan 22 09:39 foo

root@rs3:~# echo hi | sponge foo
root@rs3:~# ls -l foo
-rw-r--r-- 1 root root 3 Jan 22 09:39 foo



Hamish

-- System Information:
Debian Release: 9.6
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-8-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8), 
LANGUAGE=en_AU.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages moreutils depends on:
ii  libc6            2.24-11+deb9u3
ii  libipc-run-perl  0.94-1+deb9u1
ii  perl             5.24.1-3+deb9u5

moreutils recommends no packages.

Versions of packages moreutils suggests:
pn  libtime-duration-perl  <none>
ii  libtimedate-perl       2.3000-2

-- no debconf information

Reply via email to