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

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: coreutils; Severity: wishlist; Reported by: devzero@HIDDEN; dated Fri, 19 Jan 2018 20:57:01 UTC; Maintainer for coreutils is bug-coreutils@HIDDEN.
Changed bug title to 'doc: shred: mention stdin must be a file, not a pipe' from 'improve shred manpage' Request was from Assaf Gordon <assafgordon@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Severity set to 'wishlist' from 'normal' Request was from Assaf Gordon <assafgordon@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 19 Jan 2018 20:56:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 19 15:56:13 2018
Received: from localhost ([127.0.0.1]:35300 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ecdht-0005xU-Bl
	for submit <at> debbugs.gnu.org; Fri, 19 Jan 2018 15:56:13 -0500
Received: from eggs.gnu.org ([208.118.235.92]:53715)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <devzero@HIDDEN>) id 1ecdfT-0005tY-Ly
 for submit <at> debbugs.gnu.org; Fri, 19 Jan 2018 15:53:43 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <devzero@HIDDEN>) id 1ecdfN-0003rH-Gk
 for submit <at> debbugs.gnu.org; Fri, 19 Jan 2018 15:53:38 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:34628)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <devzero@HIDDEN>) id 1ecdfN-0003r9-DS
 for submit <at> debbugs.gnu.org; Fri, 19 Jan 2018 15:53:37 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:44670)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <devzero@HIDDEN>) id 1ecdfM-00089s-39
 for bug-coreutils@HIDDEN; Fri, 19 Jan 2018 15:53:37 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <devzero@HIDDEN>) id 1ecdfH-0003p0-3Z
 for bug-coreutils@HIDDEN; Fri, 19 Jan 2018 15:53:36 -0500
Received: from mout.web.de ([212.227.15.3]:61485)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <devzero@HIDDEN>) id 1ecdfG-0003mr-PF
 for bug-coreutils@HIDDEN; Fri, 19 Jan 2018 15:53:31 -0500
Received: from [212.117.95.165] ([212.117.95.165]) by
 3c-app-webde-bs14.server.lan (via HTTP); Fri, 19 Jan 2018 21:53:28 +0100
MIME-Version: 1.0
Message-ID: <trinity-9f099987-9d2e-4095-bc16-440c31c91ec3-1516395208943@3c-app-webde-bs14>
From: devzero@HIDDEN
To: bug-coreutils@HIDDEN
Subject: improve shred manpage
Content-Type: text/plain; charset=UTF-8
Date: Fri, 19 Jan 2018 21:53:28 +0100
Importance: normal
Sensitivity: Normal
X-Priority: 3
X-Provags-ID: V03:K1:ILYOvjLUm7bNGHP+mNfNR1MBaX511aU2nMPTLpWekEg
 IvclEfhgQukEFdApQex21yCH95kcTu+Lueg7787vtstgkl1HRM
 jYS55UekUqsN6ZTwudCfLQfKPXG7b/5Ut2epwbG8myZBp2Pnb+
 WFZq6CKvltei6lJ3ZErc0tshrTIlbeAghzrhh6RKb4MCxdNNtW
 X4R/ETVQ0qL9seiv13qsaMLSJcY9R6mBEIscdyYo2Fw/clycrb
 Dv9oncoDeOHQ/+esac59ZJXVCyzxJU/NgWv8XlX6doLHYiHE4G ZZaR8Y=
X-UI-Out-Filterresults: notjunk:1;V01:K0:kNFEGCNh6LY=:8numL3bAEOgTU0hY/PDNTd
 wSx7j0fu9DejxjOz5ogeE0qZrBqddJDKLyg9S6AraO8gI+pwbDxDuCoSWfieGoYA9+Aw+K301
 NWpV5GOX8DxWqwIITooHPoRCjJ+/OE2iPH6PSnlOO2cET0BbRYJudofcM4+FxM/FXiFOvzcDV
 XA3V7HeFQ1ZdeVptjck4YMUYbLnnUTtMj/LlocToVMRW4hQZocUWXeRaTNqqxky5OlRvN+ZrX
 ZkDm7FkMaYhPCRSf8qgzWktw3HzsUDSt0mTkXa+1C12pRQrP0nCJ0Ri6HbSsxf4jPTgM2wbVr
 qwu35b+czUn/+WDcVLkkiCc5yY8mP1TC+1CaSz8Ibdi69ITOi4iX2rKeND/CS1Eju+c/69ixZ
 X4eh8BAGTUCNrD5MfVqiwtkNTkz+DZPAFfnayGAJ+H3DPs/cuqKe4ewTMnWSwNgGvPkx7C2tq
 VyMQrqZY6gbFIO/BLvYs84SmC7TaLOUQEzYC431JVBXS2ZzzNqTL
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.1 (----)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Fri, 19 Jan 2018 15:56:11 -0500
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.1 (----)

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




Acknowledgement sent to devzero@HIDDEN:
New bug report received and forwarded. Copy sent to bug-coreutils@HIDDEN. Full text available.
Report forwarded to bug-coreutils@HIDDEN:
bug#30177; Package coreutils. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 30 Oct 2018 02:45:01 UTC

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