dtb trinity
trinity commented on pull request bonsai/harakit#18 2023-12-28 16:36:47 -07:00
fop(1) and Rust sysexits support (no yacexits!)

Multiple pipeline statements on the same line also make this a little tricky for me.

trinity commented on pull request bonsai/harakit#18 2023-12-28 16:36:47 -07:00
fop(1) and Rust sysexits support (no yacexits!)

Why $$ here? I can't quite follow.

trinity commented on pull request bonsai/harakit#18 2023-12-28 16:36:47 -07:00
fop(1) and Rust sysexits support (no yacexits!)

Can cpp not take a relative path? It can be safely assumed that a Makefile is executed with PWD being the Makefile's parent directory. Why pass $PWD/path literally versus the path itself with the shell doing the variable expansion?

trinity commented on pull request bonsai/harakit#18 2023-12-28 16:36:47 -07:00
fop(1) and Rust sysexits support (no yacexits!)

It would be better to check that there are enough arguments before anything else to avoid unnecessary operations.

trinity commented on pull request bonsai/harakit#18 2023-12-28 16:36:47 -07:00
fop(1) and Rust sysexits support (no yacexits!)

Perhaps we should have a defines.h to set magic numbers like the ASCII record separator as the delimiter.

trinity commented on pull request bonsai/harakit#18 2023-12-28 16:36:47 -07:00
fop(1) and Rust sysexits support (no yacexits!)

I think it would be better to have ASCII horizontal tabs as the delimiter if standard output is a tty so output is readable in all fonts and on all terminals. At least npc(1) exists.

trinity commented on pull request bonsai/harakit#18 2023-12-28 16:36:47 -07:00
fop(1) and Rust sysexits support (no yacexits!)

The code probably runs (I haven't tested compiling yet) but I hope you heed my suggestions.

trinity commented on pull request bonsai/harakit#18 2023-12-28 16:33:48 -07:00
fop(1) and Rust sysexits support (no yacexits!)

I think it would be better to have ASCII horizontal tabs as the delimiter if standard output is a tty so output is readable in all fonts and on all terminals. At least npc(1) exists

trinity commented on pull request bonsai/harakit#18 2023-12-28 16:26:45 -07:00
fop(1) and Rust sysexits support (no yacexits!)

Multiple pipeline statements on the same line also make this a little tricky for me.

trinity commented on issue bonsai/harakit#17 2023-12-28 16:21:07 -07:00
simexec(1)

futzing; utilities that aren't useful except to break things (hell yeah).

trinity commented on issue bonsai/harakit#16 2023-12-28 16:18:20 -07:00
Versioning

There are currently seven utilities in the tree. Following my previous decimal scheme, it could be something like

  • 0.7.0-rel
  • 0.7.1-20231228 (a nightly before 0.7.1)
  • 0.7.1-rel

But I…

trinity commented on issue bonsai/harakit#17 2023-12-28 12:12:39 -07:00
simexec(1)

bonsai/bonuspack would be fun. Or bonsai/leaves maybe.

trinity commented on issue bonsai/harakit#8 2023-12-27 09:46:29 -07:00
qi(1): The qi shell

i would prefer not to see scoping in the shell.

This is probably for the best. I mention it because this is how C functions with statement blocks.

as for the way conditionals work, what…

trinity opened issue bonsai/harakit#17 2023-12-27 09:09:20 -07:00
simexec(1)
trinity commented on issue bonsai/harakit#16 2023-12-26 17:34:41 -07:00
Versioning

I mean the nightly not as a binary release but as a tarball of the current repository tree (more like a git branch/tag/whatever). So you can `git clone $bonsai_coreutils; cd coreutils; git…

trinity commented on issue bonsai/harakit#15 2023-12-26 16:27:39 -07:00
dj(1) - disk jockey

Requiring an input argument even if standard input would favor the former scenario ergonomically (dj in versus dj - out).

please rephrase this, i have no idea what this is…

trinity commented on issue bonsai/harakit#16 2023-12-26 13:57:31 -07:00
Versioning

I lean towards releasing the nightly at the end of each month as version YYYYMM, e.g. the first release would be 202312. That way we never have to think about it.

Otherwise maybe release.major.m…

trinity commented on issue bonsai/harakit#12 2023-12-26 13:52:55 -07:00
Binaries have preset names when argv[0] is an empty string

Tagged because you might have something to add, I think we've probably discussed argc==0 before.

trinity commented on issue bonsai/harakit#12 2023-12-26 13:52:05 -07:00
Binaries have preset names when argv[0] is an empty string

Hacks can be dangerous. [Polkit famously had a root escalation vulnerability around assuming argc > 0](https://blog.qualys.com/vulnerabilities-threat-research/2022/01/25/pwnkit-local-privilege-es…

trinity commented on issue bonsai/harakit#15 2023-12-26 13:40:23 -07:00
dj(1) - disk jockey

The amount of scenarios where one would want an input file and standard output, and the amount where one would want standard input and an output file, seem to be roughly equal to me. Requiring an…