GNU bug report logs -
#30177
doc: shred: mention stdin must be a file, not a pipe
Previous Next
Full log
View this message in rfc822 format
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.