Re: [PATCH v2 1/1] t0003: Call dd with portable blocksize
- From
Torsten Bögershausen <tboegi@web.de>
- Date
- Jan 22, 2023, 18:00 UTC
- Message-ID
- <20230122180043.jfexuzsdiwqraqma@tb-raspi4>
- In-Reply-To
- <xmqqtu0isfom.fsf@gitster.g>
On Sun, Jan 22, 2023 at 08:21:45AM -0800, Junio C Hamano wrote:
Show 20 quoted lines
> tboegi@web.de writes: > > > From: Torsten Bögershausen <tboegi@web.de> > > > > The command `dd bs=101M count=1` is not portable, > > e.g. dd shipped with MacOs does not understand the 'M'. > > Very good piece of information to have here. > > > Use `bs=1048576 count=101`, which achives the same, instead. > > I'd locally tweak (read: no need to resend) it to > > Use `dd bs=1048576 count=101`, which ... > > and downcase "Call" on the title line. > > A tangent. I wonder how portable > > dd bs=1024x1024 count=101
This works all Unix-ish system I have: both on MacOs and FreeBSD.
> dd bs=1kx1k count=101
Works on FreeBSD. Does not work under MacOS: "dd: bs: illegal numeric value"
> In any case, thanks for the update.
Thanks for the review and the tweaking.