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

    • Ab Cadd
      Sat Jun 6 15:42:53 2026
      from Sheboygan, Wi via Telnet
    • Centurion
      Sat Jun 6 15:32:28 2026
      from Berea, Ohio via Telnet
    • Krenn
      Sat Jun 6 11:38:56 2026
      from Sydney, Nsw via Telnet
    • Furryboy
      Sat Jun 6 10:56:29 2026
      from Romania, Galati via SSH
    • Centurion
      Fri Jun 5 22:28:01 2026
      from Berea, Ohio via Telnet
    • Ab Cadd
      Fri Jun 5 17:52:51 2026
      from Sheboygan, Wi via Telnet
    • Gwylbert
      Fri Jun 5 06:28:52 2026
      from Sydney, Nsw via Telnet
    • Centurion
      Thu Jun 4 23:42:23 2026
      from Berea, Ohio via Telnet
  • System Info

    Sysop: Keyop
    Location: Huddersfield, West Yorkshire, UK
    Users: 715
    Nodes: 16 (2 / 14)
    Uptime: 148:56:54
    Calls: 12,091
    Calls today: 4
    Files: 15,000
    Messages: 6,517,565

© >>> Magnum BBS <<<, 2026