On 2/10/24 04:40, tomas@tuxteam.de wrote:
On Sat, Feb 10, 2024 at 11:38:21AM +0100, Thomas Schmitt wrote: [...]But shred(1) on Debian 11 refuses on "-" contrary to its documentation: shred: -: invalid file type A non-existing file path causes "No such file or directory".Hmm. This looks like a genuine bug: the man page mentions it. Also, /dev/stdout as target runs into the very same problem. Cheers
Testing: 2024-02-10 16:01:54 dpchrist@laalaa ~ $ cat /etc/debian_version ; uname -a 11.8Linux laalaa 5.10.0-27-amd64 #1 SMP Debian 5.10.205-2 (2023-12-31) x86_64 GNU/Linux
2024-02-10 16:02:34 dpchrist@laalaa ~
$ bash --version | head -n 1
GNU bash, version 5.1.4(1)-release (x86_64-pc-linux-gnu)
2024-02-10 16:02:48 dpchrist@laalaa ~
$ shred --version | head -n 1
shred (GNU coreutils) 8.32
2024-02-10 16:03:42 dpchrist@laalaa ~
$ man shred | grep 'If FILE is -'
If FILE is -, shred standard output.
2024-02-10 16:03:50 dpchrist@laalaa ~
$ shred -s 1K - | wc -c
shred: -: invalid file type
0
It looks like a shred(1) needs a bug report.
David