Multiple pipeline statements on the same line also make this a little tricky for me.
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?
It would be better to check that there are enough arguments before anything else to avoid unnecessary operations.
Perhaps we should have a defines.h to set magic numbers like the ASCII record separator as the delimiter.
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.
The code probably runs (I haven't tested compiling yet) but I hope you heed my suggestions.
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
Multiple pipeline statements on the same line also make this a little tricky for me.
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…
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…
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…
Requiring an input argument even if standard input would favor the former scenario ergonomically (
dj in
versusdj - out
).please rephrase this, i have no idea what this is…
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…
argv[0]
is an empty string
Tagged because you might have something to add, I think we've probably discussed argc==0
before.
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…
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…