Re: shred bug? [was: Unidentified subject!]
Hi,
tomas@tuxteam.de wrote:
> Still there's the discrepancy between doc and behaviour.
Depends at which documentation you look. Obviously stemming from
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=155175#36
i read in
https://www.gnu.org/software/coreutils/manual/html_node/shred-invocation.html
"A file of ‘-’ denotes standard output. The intended use of this is to
shred a removed temporary file. For example: [shell wizzardry]"
It works as long as stdout is connected to a data file, or block device,
or directory, or symbolic link, or to a character device that is not a
terminal.
(Maybe it refuses later on some of these types, but not at the location
with the message "invalid file type". I wonder if i can connect stdout
to a symbolic link instead of its target.)
The bug would thus have to be filed against the man page
https://sources.debian.org/src/coreutils/9.4-3/man/shred.1/
which says only
"If FILE is \-, shred standard output."
The info empire of coreutils says what above web manual says.
https://sources.debian.org/src/coreutils/9.4-3/doc/coreutils.texi/#L10705
Have a nice day :)
Thomas
Reply to: