• nookiena@lemmy.world
      link
      fedilink
      arrow-up
      9
      ·
      1 year ago

      What’s that in eli20?

      UNIX V5, OpenBSD, Plan 9, FreeBSD, and GNU coreutils implementations of echo.c

      • ziggurism@lemmy.world
        link
        fedilink
        arrow-up
        9
        ·
        1 year ago

        It shows that Unix’s implementation of echo uses 10 lines of code, other *nixen use 60 to 100, and gnu uses 250. The implication being, I suppose, that GNU has such a high line of code count because it’s very verbose or padded

      • nottheengineer@feddit.de
        link
        fedilink
        arrow-up
        8
        ·
        1 year ago

        Implementation is the actual code with the logic that does the thing you want it do, as opposed to the command, which is how you tell the system what it should do.

        The command can be the same on multiple OSs, but the implementation can be different.

        In case of Linux and the coreutils (which are the basic programs you need beside the kernel to make a functioning system, stuff like mkdir) the most common implementation of all the coreutils is the one made by GNU. Stallmann did a lot of work on that so he wants credit for making a big part of the OS.