diff options
author | Jim Meyering <jim@meyering.net> | 1993-03-31 03:44:09 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1993-03-31 03:44:09 +0000 |
commit | a3dc0b45fc729852460cc4ed61f09566c1fd22dc (patch) | |
tree | 2957415f7c7f1e790a0f577a086cdf6223503c5f | |
parent | 6cc93340110e35bb26a376289554ea5cf599440c (diff) | |
download | coreutils-a3dc0b45fc729852460cc4ed61f09566c1fd22dc.tar.xz |
(parse_old_offset): Allow `0X' as well as `0x' prefix to indicate hex.
-rw-r--r-- | src/od.c | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -1359,7 +1359,7 @@ parse_old_offset (const char *s) radix = 10; else { - if (strlen (s) >= 2 && s[0] == '0' && s[1] == 'x') + if (strlen (s) >= 2 && s[0] == '0' && (s[1] == 'x' || s[1] == 'X')) radix = 16; else radix = 8; @@ -1781,11 +1781,10 @@ main (argc, argv) n_files = argc - optind; - /* If the --compatible option was used, there may be from 0 to 3 - remaining command line arguments: - [file] [offset [pseudo_start]] - The offset and pseudo_start have the same syntax - FIXME: elaborate */ + /* If the --compatible option is used, there may be from 0 to 3 + remaining command line arguments; handle each case separately. + od [file] [[+]offset[.][b] [[+]label[.][b]]] + The offset and pseudo_start have the same syntax. */ if (flag_compatibility) { |