The James Legge translation of the Tao Te Ching is public domain.
rpn(1)
- reverse polish notation
Some questions regarding design:
- How should numbers be represented internally? (float, fixed point, integer only)
- What operations should be supported?
- obviously
+
,-
,*
-…
- obviously
qi(1)
: The qi shell
Both Emma and I plan to have math be in a separate utility or utilities and not built into the shell at all.
I had a number of qualms about ASCII separated values I've answered for myself.
Another concern that has been brought up a number of times is that some fonts do not print the ASCII field…
Actually - not truncating the output file should be the default. Truncation can be achieved easily:
dj -i in > out # through stdout and a shell redirect
>out; dj -i in -o out # the same…
Some thoughts about dj(1) I have today.
Some dd(1p) behavior I find interesting:
- If a partial block is read (e.g.
read(fd, buf, ibs) < ibs
) dd(1p) operates on that block in particular.…
Why define EXIT_FAILURE here? It's already in the C standard library. Unless this is for Rust purposes specifically.
It would be nice to have a further level of indent to indicate the pipeline within the "$(
)"
. I have a hard time reading this.
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.