[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] support 0x prefix on number arguments passed to dd
From: |
Eric Blake |
Subject: |
Re: [PATCH] support 0x prefix on number arguments passed to dd |
Date: |
Thu, 04 Oct 2007 18:36:48 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Bart Trojanowski on 10/4/2007 4:09 PM:
> This is a trivial patch that adds hexadecimal support for numerical
> arguments passed to dd.
This has been suggested before:
http://lists.gnu.org/archive/html/bug-coreutils/2006-03/msg00107.html
Alas, your patch won't work with the b, c, or E suffix, so you are
probably better off using what was determined before, and simply let a
POSIX-conformant shell do the work for you:
dd if=/dev/zero of=test bs=$((0xe0000)) count=1
- --
Don't work too hard, make some time for fun as well!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHBYcf84KuGfSFAYARAv7lAKCmlUal+uj6e8osWr4CUp+jWUNUuwCguoIU
7sygB4czKm236CObCT3e8ag=
=81Fu
-----END PGP SIGNATURE-----