Received: (at submit) by debbugs.gnu.org; 1 Jun 2024 15:31:19 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jun 01 11:31:19 2024 Received: from localhost ([127.0.0.1]:57103 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1sDQhS-0003MK-Bs for submit <at> debbugs.gnu.org; Sat, 01 Jun 2024 11:31:19 -0400 Received: from lists.gnu.org ([209.51.188.17]:33930) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <ofnuts@HIDDEN>) id 1sDLCA-0005cf-3X for submit <at> debbugs.gnu.org; Sat, 01 Jun 2024 05:38:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <ofnuts@HIDDEN>) id 1sDLBy-0001SA-24 for bug-coreutils@HIDDEN; Sat, 01 Jun 2024 05:38:26 -0400 Received: from mout.gmx.net ([212.227.17.22]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <ofnuts@HIDDEN>) id 1sDLBv-00073g-LB for bug-coreutils@HIDDEN; Sat, 01 Jun 2024 05:38:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.com; s=s31663417; t=1717234699; x=1717839499; i=ofnuts@HIDDEN; bh=8gcK3+8SHNPMV6//NnwBR0LEpSVScX+x5d76NJ1+680=; h=X-UI-Sender-Class:Content-Type:Message-ID:Date:MIME-Version:From: Reply-To:To:Subject:cc:content-transfer-encoding:content-type: date:from:message-id:mime-version:reply-to:subject:to; b=I9ZsVp59uIk+rHZWfRSWcfyjQPDxFbc5fB8guFqbDTwAcqXKusaP5KrlX9r4Zi20 RtjgRJmn+3BUcG7rV+n48YOvuvYGVFalRZE4fspLZsaw8LqkCoc4LIgZaI1ePJq/s Ih7JnnvpieuKs92OAfeNX8wAPy7ruzIfQ6yNUbQOc42S79PdWtLmERosFZQz4fhaE AHGObqzLOfp3+pLDmwrkmTY565Fz0/pisDTPJfLtWE+zaTlhWkM75ry4FlBwcas9i yDMyHyW14Dw7Kub5OiXOyZn+tsGx8wCDOqE6Q3lqGuJuRC74Kiuq76pQ7CbMTNuNX 6FtzPSsFg16Ez4KP1Q== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.0.14] ([91.169.211.187]) by mail.gmx.net (mrgmx104 [212.227.17.174]) with ESMTPSA (Nemesis) id 1MXGr8-1ryOaD1oRq-00VheS for <bug-coreutils@HIDDEN>; Sat, 01 Jun 2024 11:38:19 +0200 Content-Type: multipart/alternative; boundary="------------ZS6t37Dwq61O1rXZe5ucpBNT" Message-ID: <dcb12474-7a25-4c35-9a1a-b03143a4353c@HIDDEN> Date: Sat, 1 Jun 2024 11:38:18 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US From: Ofnuts <ofnuts@HIDDEN> To: bug-coreutils@HIDDEN Subject: du --total output does not take in account the --threshold X-Provags-ID: V03:K1:tpFlCxVQAI29nIiGXUSpxhyPN/P6n+RYazUSdpyLnFSCoiBYDDa 7Ty9G12zzbObg+o65X393crh7IVfy6ZifAmvuvon3mqF64FFAENHdMpsDHwxkc21DCg7n0w HvujXvaPctUnl+Af4zAgtGVMtPwafKiyVv8npY9Gon+Q33i9eySPceLlFnU37V1KUjp4qHX Vm4Wfovy7rvkckAwI1ggw== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:89xt0sWnhf8=;eYFOxEyU96hSsQjtoN/6qxQZVnG tkAd1soOnHznmHwsurIdy5jd6nC60tPJqHsTY1OM1UcNmLadX8/EqIqE2nwaSMxqxE8r+zGlh hCUK2CapEczRuwv2K70mWtc2N5w1+/YgdumqQCikschtWuivvimVKdevpd+lZ9ho3j27vPuZ3 jrybBeE6/HGFW/emmLkh5Rcm1tDUIfn8EtUzPJ+aX234FruIhnkjnArCeelI5gWMnMDfDFNWS CxzgRgdb6VsbQi4UKAnAz+f+IJja9LbjebyZEZHn3wP7vqfnv1ow1juKabOFQytW0T/dBuKip xk95MZ+GScmpebN6DrtYfuleyY0sTorG5HY4ZORzxuJR/7apOyEsRrYb6sMGetxJw5wqdU5O3 6wUuzUITQPi9jIimMIG0cHghAGLR0lStFE/wfM/xl7PogSRzyV+LnHv7tQt+Kd0FEIF+wKHcl EwslgYX+GMIPCmdDnFEZdyxdWfwdAp8Z95zxLCiOY50cMb6/G+WueS66HIRTX9LCKN9hogHLv iox3YP4LZUyhqJLrYu9Ia2VryYDBlgl925o9e714wQVjX0mueu+lFs5FhbjAR6FMRIR/jC9ol ZM2vytKj9md3pJFPV8lUz/ELPqRPQ5udrc5CkIJcleSLlYbepeI5TG4tc3EmP81Sr1mYv3dyc nzdT4hOIAI6j7UAgKp2S/7oOSIastdybZETtFoHC6m9+o4Ur9dwUNS+C5m97fs54QcFJMR9eP gmbwyFWtWXS7gmgk9NQC5N73Wn/e0+yCMvUavaA41k2a9qyQWg6GRQ3vZWukztH/pQoaA714t aDgdFaKGf1Ona9ic+d3PbOu2SMGpy8OJpX/6p5cZuS2yI= Received-SPF: pass client-ip=212.227.17.22; envelope-from=ofnuts@HIDDEN; helo=mout.gmx.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 01 Jun 2024 11:31:17 -0400 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> Reply-To: ofnuts@HIDDEN Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.3 (--) This is a multi-part message in MIME format. --------------ZS6t37Dwq61O1rXZe5ucpBNT Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Hello, In a directory with this: $du --total * 10240 =C2=A0=C2=A010-Megs 20480 =C2=A0=C2=A020-Megs 61444 =C2=A0=C2=A060-Megs 81924 =C2=A0=C2=A080-Megs 174088 =C2=A0total I would expect du --total --threshold -50M * to be $du --total --threshold -50M * 10240 =C2=A0=C2=A010-Megs 20480 =C2=A0=C2=A020-Megs 30720 =C2=A0 total ie exactly as if I had asked: $du --total 10-Megs 20-Megs 10240 =C2=A0=C2=A010-Megs 20480 =C2=A0=C2=A020-Megs 30720 =C2=A0=C2=A0total But the actual output is: $du --threshold -50M --total * 10240 =C2=A0=C2=A010-Megs 20480 =C2=A0=C2=A020-Megs 174088 =C2=A0total and so the total includes all the files scanned, and not just the files displayed. I see this in coreutils 8.32, but the culprit code seems to still be there in the current master branch Regards --------------ZS6t37Dwq61O1rXZe5ucpBNT Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <!DOCTYPE html> <html> <head> <meta http-equiv=3D"content-type" content=3D"text/html; charset=3DUTF-= 8"> </head> <body> <p>Hello,<br> </p> <p>In a directory with this:</p> <p><span style=3D"font-family:monospace"><span style=3D"color:#000000;background-color:#ffffff;">$du --total * </span><br> 10240 =C2=A0=C2=A010-Megs <br> 20480 =C2=A0=C2=A020-Megs <br> 61444 =C2=A0=C2=A060-Megs <br> 81924 =C2=A0=C2=A080-Megs <br> 174088 =C2=A0total</span></p> <p><span style=3D"font-family:monospace">I would expect du --total --threshold -50M * to be<br> </span></p> <p><span style=3D"font-family:monospace"><span style=3D"color:#000000;background-color:#ffffff;">$du --total --threshold -50M * =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0</span><br> 10240 =C2=A0=C2=A010-Megs <br> 20480 =C2=A0=C2=A020-Megs <br> 30720 =C2=A0 total</span></p> <p><span style=3D"font-family:monospace">ie exactly as if I had asked: <br> </span></p> <p><span style=3D"font-family:monospace"><span style=3D"color:#000000;background-color:#ffffff;">$du --total 10-Megs 20-Megs =C2=A0</span><br> 10240 =C2=A0=C2=A010-Megs <br> 20480 =C2=A0=C2=A020-Megs <br> 30720 =C2=A0=C2=A0total<br> <br> But the actual output is:</span></p> <p><span style=3D"font-family:monospace"><span style=3D"color:#000000;background-color:#ffffff;">$du --threshold -50M --total * </span><br> 10240 =C2=A0=C2=A010-Megs <br> 20480 =C2=A0=C2=A020-Megs <br> 174088 =C2=A0total<br> <br> and so the total includes all the files scanned, and not just the files displayed.</span></p> <p><span style=3D"font-family:monospace">I see this in coreutils 8.32, but the culprit code seems to still be there in the current master branch<br> </span></p> <p><span style=3D"font-family:monospace">Regards<br> </span></p> <p><span style=3D"font-family:monospace"><br> </span><span style=3D"font-family:monospace"><br> </span><span style=3D"font-family:monospace"></span></p> <p><br> </p> <div id=3D"grammalecte_menu_main_button_shadow_host" style=3D"width: 0px; height: 0px;"></div> </body> </html> --------------ZS6t37Dwq61O1rXZe5ucpBNT--
ofnuts@HIDDEN
:bug-coreutils@HIDDEN
.
Full text available.bug-coreutils@HIDDEN
:bug#71309
; Package coreutils
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.