On Wed, Jun 12, 2024 at 2:57 PM Rob Landley <r...@landley.net> wrote:
> On 6/11/24 16:56, Ray Gardner wrote:
> > Elliot, thanks for the positive feedback on the docs, but I really
> > wish you and Rob would try the program. I waited a while to see what
> > Rob would have to say. He doesn't seem the sort to be at a loss for
> > words, but ... nothing. Any idea why he's had nothing to say about an
> > awk for toybox?
> Why are you asking Elliott?

He responded to my post; you didn't. I know you've had a lot on your plate
lately with your move, selling the house, working on toysh. But you
responded to most posts here since mine on 5/14.

After all you've written about awk, I was puzzled by your non-response,
and inferred wrongly that it was intentional, so I thought asking you why
you didn't respond to a post you intended to ignore would be ... not well
received. I thought Elliot might have some insight there.

> Remember the "poke me a week later if I forget"?

No. But I dug into the archive, and find that you said that to Oliver in a
post about toysh in March. But never about awk, or to me.

> I consider myself poked, somewhat passive-aggressively. :)

No passive aggression intended.

But you've been looking for an awk for at least 8 years, so I really
thought you'd welcome one that's complete and written for toybox, with
some tests and documentation.

> I have the tab open, the reason I haven't looked at it yet is A) it's 4500
> lines, B) in a thing I have WAY insufficient existing domain expertise in (but
> multiple bookmarked tutorials and an entire book on somewhere).

It's really 3523 lines of non-blank non-comment code, measured with:

toybox awk -f cnt_sloc.awk awk.c

where cnt_sloc.awk is:
/^[ \t]*\/\*/ , /\*\/[ \t]*$/ { next } # Skip /* ... */ comments
/^ *$/ || /^ *\/\// { next } # Skip empty and //comment-only lines
{ sloc++ }
END { print sloc }

BTW regarding not getting an SSD at Target: there's a MicroCenter in the
Minneapolis metro area; might be worth the drive. The one where I am is good.
Toybox mailing list

Reply via email to