HeyPuter / phoenix

🔥 Puter's pure-javascript shell
https://puter.com/app/terminal
GNU Affero General Public License v3.0
88 stars 15 forks source link

Add `true`, `false`, and `basename` shell utilities #15

Closed AtkinsSJ closed 4 months ago

AtkinsSJ commented 4 months ago

Everyone's favourites, true and false! And then something a little more involved.

Also tweak tools/gen.js to include the copyright block, since running it otherwise removes that copyright.

I don't know how you feel about including spec comments in code, but I've done so for basename since the spec provides a numbered list of steps to follow. I can remove that if you'd prefer.

Also, I don't think there is an existing system for testing these shell utilities but I might just have missed it. :sweat_smile:

Let me know if anything I'm doing is wrong or I'm missing something! For example I haven't touched meta/versions.js here, but maybe I should have.