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
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.
obligatory
deleted by creator
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
Not only comments and padding, but also features/flags/options in GNU echo
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.
The same program (
echo
) implemented in different operating systems (and the GNU version).Well, no surprise they have more lines of code. And that’s even if you disregard printing help.
That’s how they get more lines of code.