Pop-Up Thingie

>>> Magnum BBS <<<
  • Home
  • Forum
  • Files
  • Log in

  1. Forum
  2. Usenet
  3. COMP.UNIX.SHELL
  • "od" not a mandatory part of the POSIX standard? (was: How do I escape

    From Helmut Waitzmann@21:1/5 to All on Thu Mar 17 23:20:01 2022
    Ed Morton <[email protected]>:

    You'd have to ask the guys who write the specs but "od" is one
    example of a basic tool that's been around for decades and
    apparently isn't mandatory since it's annotated with "XSI" in the
    spec -


    I don't think so.  The "XSI" tag in the spec


    https://pubs.opengroup.org/onlinepubs/9699919799/utilities/od.html.


    only comprises the old invocation syntax


    od [-bcdosx] [file] [[+]offset[.][b]][Option End]


    One can use the modern syntax instead:


    od [-v] [-A address_base] [-j skip] [-N count] [-t type_string]...
    [file...]

    which is not affected by the "XSI" tag.  See also the sections labeled "RATIONALE" (<https://pubs.opengroup.org/onlinepubs/9699919799/utilities/od.html#tag_20_88_18>)
    and "FUTURE DIRECTIONS" (<https://pubs.opengroup.org/onlinepubs/9699919799/utilities/od.html#tag_20_88_19>).

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ed Morton@21:1/5 to Helmut Waitzmann on Thu Mar 17 17:29:50 2022
    On 3/17/2022 5:20 PM, Helmut Waitzmann wrote:
    Ed Morton <[email protected]>:

    You'd have to ask the guys who write the specs but "od" is one example
    of a basic tool that's been around for decades and apparently isn't
    mandatory since it's annotated with "XSI" in the spec -


    I don't think so.  The "XSI" tag in the spec

    https://pubs.opengroup.org/onlinepubs/9699919799/utilities/od.html.


    only comprises the old invocation syntax

     od [-bcdosx] [file] [[+]offset[.][b]][Option End]


    One can use the modern syntax instead:

     od [-v] [-A address_base] [-j skip] [-N count] [-t type_string]...
            [file...]

    which is not affected by the "XSI" tag.  See also the sections labeled "RATIONALE" (<https://pubs.opengroup.org/onlinepubs/9699919799/utilities/od.html#tag_20_88_18>)
    and "FUTURE DIRECTIONS" (<https://pubs.opengroup.org/onlinepubs/9699919799/utilities/od.html#tag_20_88_19>).


    OK, bad choice I guess, I didn't want to spend much time on this so just glanced at the first one that came to mind. Look at `cal` (https://pubs.opengroup.org/onlinepubs/9699919799/utilities/cal.html) or
    `ex`
    (https://pubs.opengroup.org/onlinepubs/9699919799/utilities/ex.html) or
    one of the others I mentioned or just poke around other commands instead
    then and you'll see some examples.

    Ed.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • Who's Online

  • Recent Visitors

    • Bob Worm
      Thu Jul 30 09:03:28 2026
      from Wales, Uk via Telnet
    • Bob Worm
      Thu Jul 30 08:47:34 2026
      from Wales, Uk via Telnet
    • Bob Worm
      Thu Jul 30 08:36:06 2026
      from Wales, Uk via Telnet
    • Rixter
      Thu Jul 30 02:32:09 2026
      from Madison, Nc via Telnet
    • Bob Worm
      Wed Jul 29 22:26:45 2026
      from Wales, Uk via Telnet
    • Zenobyte
      Wed Jul 29 21:08:05 2026
      from San Juan, Pr via Telnet
    • Guest
      Wed Jul 29 14:26:54 2026
      from Balkans via Telnet
    • Rixter
      Wed Jul 29 14:18:17 2026
      from Madison, Nc via Telnet
  • System Info

    Sysop: Keyop
    Location: Huddersfield, West Yorkshire, UK
    Users: 741
    Nodes: 16 (2 / 14)
    Uptime: 85:55:20
    Calls: 12,454
    Calls today: 4
    Files: 15,195
    Messages: 6,537,805

© >>> Magnum BBS <<<, 2026