[Toybox] awk (Re: ps down, top to go)

Rob Landley rob at landley.net
Wed Jun 1 09:43:22 PDT 2016


On 05/30/2016 10:02 PM, Andy Chu wrote:
>> If you're restricting it to Bourne compatible, you're cutting out things
>> like Bill Joy's csh and plan 9's "rc"...
...
> Sure, but the question is if it had a POSIX shell.  I doubt it.  Like
> I said, most people at that time probably shipped a Thompson-like
> shell, without functions and control flow.

No, _your_ question  was whether it was a posix shell. I just said
people have written a dozen shells.

My goal has actually been a reasonable bash replacement, which has a
number of features beyond posix shell. (I don't remember if posix even
requires interactive command line history.)


>> This of course predated posix by many years, but it shows that there's a
>> lot of different taxonomies out there.
> 
> OK, but again my claim is easy to disprove if it's incorrect.  I'm
> talking about open source POSIX compliant shells.  I claim there are 4
> distinct code lineages (with hush being a probable 5th).  You need a
> significant chunk of code and a lot of testing to make a POSIX
> compliant shell; it won't just happen by accident.  It's not a weekend
> project.  :)

Yes, I know. That's why I haven't reopened that can of worms yet and had
it on the "hard" part of my original todo list back in like 2007.

That said, I'm not worried about being able to do it when I get there. I
just don't want to do small interrupted chunks because I'll spend most
of my time each work session figuring out where I left off last time.

Rob



More information about the Toybox mailing list