Re:dd built-in progress introduced in coreutils 8.24
by __david__ on Sunday January 10, 2016 @09:58PM
(#10878502)
Yeah, it's ugly, but it's sadly the only way to correctly do cross platform prints where the type may or may not be 64 bit.
[ Parent
| on HN ]
Re:dd built-in progress introduced in coreutils 8.24
by _kst_ on Sunday January 10, 2016 @10:20PM
(#10878576)
The `PRIuMAX` macro in particular is not necessary. It expands to a format usable for `uintmax_t`, but you can also use `"%ju"`. Both were introduced in ISO C99.
(Unless your `printf` implementation doesn't recognize `"%ju"`, and the `PRIuMAX` macro and friends are defined in some non-standard system-specific manner.)