[hackers] [ubase] Re: [sbase][PATCH] dd: fix for ibs * count < obs

From: phoebos <ben_AT_bvnf.space>
Date: Thu, 13 Apr 2023 14:50:59 +0100

On Wed, Apr 12, 2023 at 20:51:50 -0700, Michael Forney wrote:
> Thanks for reporting this bug! Apologies for the delay.

No worries.

> On 2022-11-29, phoebos <ben_AT_bvnf.space> wrote:
> > yes | dd ibs=1 count=1

Incidentally, ubase dd also has this bug:

    $ yes | dd ibs=1 count=1 >/dev/null
    57 records in
    57 records out
    65536 bytes (0 MB) copied, 1 s, 0.000000 MB/s

    $ yes | dd ibs=1 obs=1 count=1 >/dev/null
    57 records in
    57 records out
    65536 bytes (0 MB) copied, 1 s, 0.000000 MB/s

but it works correctly with bs:

    $ yes | dd bs=1 count=1 >/dev/null
    1 records in
    1 records out
    1 bytes (0 MB) copied, 1 s, 0.000000 MB/s
Received on Thu Apr 13 2023 - 15:50:59 CEST

This archive was generated by hypermail 2.3.0 : Thu Apr 13 2023 - 17:24:41 CEST