On 21/05/03 04:28PM, Greg Reagle 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
>
> I know that it would need to be a bit more elaborate than that to handle the
> -n flag, but still.
Greg Reagle 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
Plan 9 doesn't have head(1), neither do I in my sbase, not even a wrapper.
`sed 10q` emulates the default behavior of head,
On 21/05/03 05:27, Greg Reagle wrote:
> And if it has less lines, in a higher level language, sounds like a win.
Higher level languages usually mean more complexity and less control. Having
less lines in a higher level language doesn't mean much if the language adds
unnecessary overhead "behind
On Mon, 03 May 2021 19:40:04 -0400
"Greg Reagle" 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
On Mon, May 03, 2021 at 04:28:47PM -0400, Greg Reagle 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
>
No
> I know that it would need to be a bit more elaborate than that to handle
> 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
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
On Mon, May 3, 2021, at 16:51, Jeremy wrote:
> I'd argue that requiring awk to use `head` would create more
> complexity(for the end user) than it would solve for the developer.
I assume that you mean requiring head to use awk. I cannot imagine how it
would have any effect at all on the end
On 05/03/21 04:28PM, Greg Reagle 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
>
Great job.
> I know that it would need to be a bit more elaborate than that to handle the
> -n
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
I know that it would need to be a bit more elaborate than that to handle the -n
flag, but still. Is there any advantage to having a separate C