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

    • Amstrad Ppc
      Sat Oct 31 19:07:41 2026
      from Wiltshire via Telnet
    • Amstrad Ppc
      Sat Oct 31 17:11:55 2026
      from Wiltshire via Telnet
    • Ashenfieldx
      Sat Oct 31 16:47:35 2026
      from Guelph, Ontario via Telnet
    • Amstrad Ppc
      Sat Oct 31 16:34:27 2026
      from Wiltshire via Telnet
    • Amstrad Ppc
      Sat Oct 31 15:21:38 2026
      from Wiltshire via Telnet
    • Amstrad Ppc
      Sat Oct 31 15:13:22 2026
      from Wiltshire via SSH
    • Amstrad Ppc
      Sat Oct 31 13:42:25 2026
      from Wiltshire via SSH
    • Root Cellar
      Sat Oct 31 12:26:17 2026
      from 505 via Telnet
  • System Info

    Sysop: Keyop
    Location: Huddersfield, West Yorkshire, UK
    Users: 796
    Nodes: 16 (3 / 13)
    Uptime: 151:23:00
    Calls: 13,191
    Calls today: 14
    Files: 15,483
    Messages: 6,579,295
    Posted today: 2

© >>> Magnum BBS <<<, 2026