Package: coreutils
Version: 8.32-4+b1
Version: 9.1-1
Severity: normal

Dear Maintainer,

Quoth od(1):
SYNOPSIS
       od [OPTION]... [FILE]...
       od [-abcdfilosx]... [FILE] [[+]OFFSET[.][b]]
       od --traditional [OPTION]... [FILE] [[+]OFFSET[.][b] [+][LABEL][.][b]]
DESCRIPTION
       If first and second call formats both apply, the second format is 
assumed if the last operand begins with +  or
       (if  there  are  2 operands) a digit.  An OFFSET operand means -j 
OFFSET.  LABEL is the pseudo-address at first
       byte printed, incremented when dump is progressing.  For OFFSET and 
LABEL, a 0x or 0X prefix indicates hexadec‐
       imal; suffixes may be . for octal and b for multiply by 512.

Quoth Issue 8 Draft 3, XSI, od:
108088  SYNOPSIS
108089      od [-v] [-A address_base] [-j skip] [-N count] [-t type_string]...
108090         [file...]
108091  XSI od [-bcdosx] [file] [[+]offset[.][b]]
108156  OPERANDS
108157       The following operands shall be supported:
108158       file            A pathname of a file to be read. If no file 
operands are specified, the standard input
108159                       shall be used.
108160                       If there are no more than two operands, none of 
the −A, −j, −N, −t, or −v options is
108161                       specified, and either of the following is true: 
the first character of the last operand
108162                       is a <plus-sign> ('+'), or there are two operands 
and the first character of the last
108163  XSI                  operand is numeric; »the last operand shall be 
interpreted as an offset operand on
108164                       XSI-conformant systems.« Under these conditions, 
the results are unspecified on
108165                       systems that are not XSI-conformant systems.
108166  XSI »[+]offset[.][b] The offset operand specifies the offset in the 
file where dumping is to commence.
108167                       This operand is normally interpreted as octal 
bytes. If '.' is appended, the offset
108168                       shall be interpreted in decimal. If 'b' is 
appended, the offset shall be interpreted
108169                       in units of 512 bytes.«

These are in agreement:
  od f 1000
  od f 1b
  od f 1.b
  od f 512.
should be equivalent. And yet:
  $ od /tmp/ur 1000
  0001000 000000 077600 000000 177600 000000 077600 000000 177600
  *
  0001640 000000 077600 000000 177600
  0001650
  $ od /tmp/ur 1b
  0001000 000000 077600 000000 177600 000000 077600 000000 177600
  *
  0001640 000000 077600 000000 177600
  0001650
  $ od /tmp/ur 1.b
  0000000 123453 136512 137101 003650 123571 151453 036037 127475
  0000020 046712 137125 051752 120146 043401 007016 163454 170646
  0000040 102342 124607 160463 102374 175711 150532 070241 011205
  0000060 030473 047651 047726 153534 155411 155052 024737 115614
  0000100 020043 073133 071157 072545 064564 071554 024135 027457
  0000120 073564 072151 062564 027162 067543 027555 060556 064542
  0000140 060552 075143 062554 062567 064554 071457 060564 072564
  0000160 027563 032061 030460 031465 033070 033470 031467 034063
  0000200 000000 037600 000000 137600 000000 040440 000000 140440
  0000220 000000 041310 000000 141310 000000 042172 000000 142172
  0000240 040000 043034 040000 143034 050000 043703 050000 143703
  0000260 022000 044564 022000 144564 113200 045430 113200 145430
  0000300 136040 046276 136040 146276 065450 047156 065450 147156
  0000320 001371 050025 001371 150025 041667 050672 041667 150672
  0000340 152245 051550 152245 151550 102347 052421 102347 152421
  0000360 163041 053265 163041 153265 057651 054143 057651 154143
  0000400 015712 055016 015712 155016 121274 055661 121274 155661
  0000420 005553 056536 005553 156536 143443 057412 143443 157412
  0000440 074354 060255 074354 160255 153447 061130 153447 161130
  0000460 103170 062007 103170 162007 064026 062651 064026 162651
  0000500 141034 063523 141034 163523 054522 064404 054522 164404
  0000520 067646 065245 067646 165245 145620 066116 145620 166116
  0000540 037472 067001 037472 167001 107410 067641 107410 167641
  0000560 171312 070511 171312 170511 067574 071374 067574 171374
  0000600 142656 072235 142656 172235 033432 073105 033432 173105
  0000620 102340 073766 102340 173766 011414 074632 011414 174632
  0000640 113717 075500 113717 175500 136703 076360 136703 176360
  0000660 073232 077226 073232 177226 000000 077600 000000 177600
  0000700 000000 077600 000000 177600 000000 077600 000000 177600
  *
  od: 1.b: No such file or directory
  0001640 000000 077600 000000 177600
  0001650
  $ od /tmp/ur 512.
  0000000 123453 136512 137101 003650 123571 151453 036037 127475
  0000020 046712 137125 051752 120146 043401 007016 163454 170646
  0000040 102342 124607 160463 102374 175711 150532 070241 011205
  0000060 030473 047651 047726 153534 155411 155052 024737 115614
  0000100 020043 073133 071157 072545 064564 071554 024135 027457
  0000120 073564 072151 062564 027162 067543 027555 060556 064542
  0000140 060552 075143 062554 062567 064554 071457 060564 072564
  0000160 027563 032061 030460 031465 033070 033470 031467 034063
  0000200 000000 037600 000000 137600 000000 040440 000000 140440
  0000220 000000 041310 000000 141310 000000 042172 000000 142172
  0000240 040000 043034 040000 143034 050000 043703 050000 143703
  0000260 022000 044564 022000 144564 113200 045430 113200 145430
  0000300 136040 046276 136040 146276 065450 047156 065450 147156
  0000320 001371 050025 001371 150025 041667 050672 041667 150672
  0000340 152245 051550 152245 151550 102347 052421 102347 152421
  0000360 163041 053265 163041 153265 057651 054143 057651 154143
  0000400 015712 055016 015712 155016 121274 055661 121274 155661
  0000420 005553 056536 005553 156536 143443 057412 143443 157412
  0000440 074354 060255 074354 160255 153447 061130 153447 161130
  0000460 103170 062007 103170 162007 064026 062651 064026 162651
  0000500 141034 063523 141034 163523 054522 064404 054522 164404
  0000520 067646 065245 067646 165245 145620 066116 145620 166116
  0000540 037472 067001 037472 167001 107410 067641 107410 167641
  0000560 171312 070511 171312 170511 067574 071374 067574 171374
  0000600 142656 072235 142656 172235 033432 073105 033432 173105
  0000620 102340 073766 102340 173766 011414 074632 011414 174632
  0000640 113717 075500 113717 175500 136703 076360 136703 176360
  0000660 073232 077226 073232 177226 000000 077600 000000 177600
  0000700 000000 077600 000000 177600 000000 077600 000000 177600
  *
  od: 512.: No such file or directory
  0001640 000000 077600 000000 177600
  0001650

Best,
наб

-- System Information:
Debian Release: 12.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: x32 (x86_64)
Foreign Architectures: amd64, i386

Kernel: Linux 6.1.0-2-amd64 (SMP w/2 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages coreutils depends on:
ii  libacl1      2.3.1-3
ii  libattr1     1:2.5.1-4
ii  libc6        2.36-9
ii  libgmp10     2:6.2.1+dfsg1-1.1
ii  libselinux1  3.4-1+b6

coreutils recommends no packages.

coreutils suggests no packages.

-- no debconf information

Attachment: signature.asc
Description: PGP signature

Reply via email to