From nobody Thu Jun 2 19:53:44 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 882801B53634 for ; Thu, 2 Jun 2022 19:53:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LDcCD2HD0z4Stm for ; Thu, 2 Jun 2022 19:53:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 2F0141AE59 for ; Thu, 2 Jun 2022 19:53:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 252JriwV001462 for ; Thu, 2 Jun 2022 19:53:44 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 252Jrifa001461 for bugs@FreeBSD.org; Thu, 2 Jun 2022 19:53:44 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 264420] [PATCH] du: Add '-b' flag for displaying bytes Date: Thu, 02 Jun 2022 19:53:44 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: obiwac@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1654199624; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1x96DeD5ZOYxkQhzaoe5BFM0qs+Amx9FpVAfgTTthuI=; b=avQAkhuePKlArCv1j0SNo4eLlXP3WmJFk2EBVpfwpT1gcB09luTOABMaXLw41udCqipxVz +/OrKbT3fZLySgmT6NVHSNUyokAYyQA/zk+Da2j3cFSXvxVJxn/J6dOTONsH7uD9hh9ej6 dWHLdk37HtEBcsHDtq/oj+BpkCR7INE2KipcXyi1kftCJ8nRQkdF8WUxpySZiEzNFupXAe bChqVm2YJ/1kq2VzGUZmvHf9WG/DDri+adBYIm6lBKGcuBlLCcDIxBiN5p4/PUPsup5jrZ flle4srH8rBnVoiJip8ojFYk70ir2L4kLcg9mj+2AUcmyy55Q5b6Z1z+sf5L1Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1654199624; a=rsa-sha256; cv=none; b=c+0/FAgu8hYjOlj/DzMW9Mrk85wY6DiIz2QIgMsZFAaxc/zSm6+AzzBHDECSx2wHvF2N9h /o6HNH61xIHd8IGqJ3wX44saJ1XOEYJSaYSnzu6YLACRsE01SuVDg2uwIUQA4bRO1Sqc5e IUFyed/fqXLOgILkXcBfI+iccCC1sCL7xxXnnU4RFs9HkiWP1JbilxX7FENw7+IjuuuMlu 1cxQV6MABqCRcO9x8FPSBqcWZub8qpRJkydxzeGdm7RPau8npb662LNPpGw0hWz/eVKCgd AvCn8mIvOpkVVeeC7HatALnIiEW/urh4XH0K/hpGGx1gjBQvvvFCTF8QJ9dqHg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264420 Bug ID: 264420 Summary: [PATCH] du: Add '-b' flag for displaying bytes Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: obiwac@gmail.com CC: obiwac@gmail.com Created attachment 234396 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D234396&action= =3Dedit Patch for du -b Adds a '-b' flag to the du(1) utility (in /usr.bin/du) for displaying the t= otal number of bytes in a file/directory, like the coreutils equivalent. I'm doing this simply by separating out a curbytes value from curblocks, and using that for operations when bflag is set. I'm aware the wc(1) utility offers similar functionality with the '-c' flag, but there are a few limitations that that solution carries (e.g. not being = able to count total bytes of entire directories recursively). I've updated the manual page (along with adding the '-g' flag to places whe= re it was missing), and also created a new testcase for it. (I have read UPDATING.) Good evening ;) --=20 You are receiving this mail because: You are the assignee for the bug.=