On Mon, 03 May 2021 19:40:04 -0400 "Greg Reagle" <grea...@fastmail.fm> wrote:
> > Would sbase suck less if the program head, which is currently a C > > program of 77 lines, were replaced with something like > > #!/bin/sh > > sed "$1"q Not really because although head is pretty simple, it's a bit more complex than that, you need to handle command parameters, have a default line numbers, and print filenames if several of them are passed (IIRC that's all). > Here it is in 37 lines of glorious rc shell code. Note that head.c also > depends on several functions in libutil, so it is more than 77 lines really. > > #!/usr/bin/env rc And how many “lines” for env and rc dependencies?