12 comments

[ 3.0 ms ] story [ 32.3 ms ] thread
Unused variable in plan9 implementation? https://github.com/pete/cats/blob/master/plan9-cat.c#L22
Thank you, that bit was very interesting. I like the idea for single threaded applications of having argv0 be a global.
Doesn't have to be single-threaded even. Main writes the pointer at the start, and no one else is going to change it, just read from it.
The plan9 one is short and sweet, but what I don't like is that it doesn't support the dashdash thing that unambiguously marks that rest of the arguments should be interpreted as files and not flags. Needed for reliable defensive shell scripts imo.

You may say "it has no options anyway" but other cats do. And you may want to add options in a future version.

How this GitHub project missed the punning opportunity on calling itself "herding-cats" is beyond me. :-)
(comment deleted)
Woah:

  GNU     782 lines
  others  123 average lines
counting only the UNIX cat with the most lines to keep them from messing with the average.