GNU bug report logs - #30177
doc: shred: mention stdin must be a file, not a pipe

Previous Next

Package: coreutils;

Reported by: devzero <at> web.de

Date: Fri, 19 Jan 2018 20:57:01 UTC

Severity: wishlist

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: devzero <at> web.de
To: bug-coreutils <at> gnu.org
Subject: improve shred manpage
Date: Fri, 19 Jan 2018 21:53:28 +0100
i tried to compare performance of shred and dd, because a colleague told, shred -n0 -z would be faster.

the shred manpage tells:
If FILE is -, shred standard output 

But:
# shred - | pv >/dev/null
shred: - invalid file type
0 B 0:00:00 [   0 B/s]  [<=>

i found https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=155175 

as "-" works when redirecting to a file, i assume it doesn't work with a pipe because shred needs to seek within the file, which is not possible with a pipe.

i think shred -n0 -z  could be handled as a special case but it would not be worth the effort.

could you perhaps enhance the manpage apropriately, as already suggested in the debian bugreport?

regards 
roland




This bug report was last modified 6 years and 239 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.