Simple patch to allow uppercase size modifiers (K, M, and G). Is there
a reason why not to? Plus, as a bonus you're less likely to mess up if
you've been naughty and used dd on Linux.
Index: args.c
===================================================================
RCS file: /cvs/src/bin/dd/args.c,v
retrieving revision 1.18
diff -u -p -r1.18 args.c
--- args.c 27 Oct 2009 23:59:21 -0000 1.18
+++ args.c 2 Oct 2011 18:04:34 -0000
@@ -341,6 +341,7 @@ get_bsz(char *val)
++expr;
break;
case 'k':
+ case 'K':
t = num;
num *= 1024;
if (t > num)
@@ -348,6 +349,7 @@ get_bsz(char *val)
++expr;
break;
case 'm':
+ case 'M':
t = num;
num *= 1048576;
if (t > num)
@@ -411,6 +413,7 @@ get_off(char *val)
++expr;
break;
case 'k':
+ case 'K':
t = num;
num *= 1024;
if (t > num)
@@ -418,6 +421,7 @@ get_off(char *val)
++expr;
break;
case 'm':
+ case 'M':
t = num;
num *= 1048576;
if (t > num)