Follow-up Comment #2, patch #4978 (project coreutils):
How about introducing new operands? POSIX requires 'x' to mean
multiplication of decimal values in bs, cbs, ibs, and obs; but for count,
skip, and seek, it only documents a value 'n'. So for the former, why not
introduce bsx, cbsx, ibsx, and obsx that take a single integer in any radix
(or at least a standard C literal integer) with optional multiplier? count,
skip, and seek can be modified directly to accept hexadecimal.
So your above example would then be written:
dd if=/dev/zero of=test bsx=0xe0000 count=1
And if you wanted to be POSIX compliant, without resorting to perl, try
something like:
dd if=/dev/zero of=test bs=14x16x4k count=1
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/patch/?func=detailitem&item_id=4978>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils