Busybox dd(1) doesn't count skipped records written as nuls in its statistics output. Given the use of the phrasing "before copying" I think this is fine.
Busybox dd(1) fails to seek on streams because lseek(3) returns -1
and sets errno
to 29
, "Invalid seek". I don't think this follows POSIX, which says the following:
seek=n Skip n…
I just noticed dd(1p) specifies that seek=100
and skip=100
seek/skip 100 blocks, not bytes. I'm not replicating that behavior because it sucks.
yes(1)
analogue
printf(1p) would be a nice addition.
On second thought I might be able to implement it in shell without terrible hacks. It seems to do the following:
- Printing verbatim. This can be…
yes(1)
analogue
printf(1p) will suck to implement so I'll wanna finish what I've already done before that.
yes(1)
analogue
Here's a fully featured yes(1) in C:
#include <stdio.h> /* fprintf(3), NULL */
#include <stdlib.h> /* stdout */
#include <sysexits.h> /* EX_OK */
char *fake_argv[] = {
(char [])…
yes(1)
analogue
echo -r
, -r
being "reverberate", would be delightful, but echo(1p) is implementation dependent enough as-is.
speak
has historically been used for text-to-speech, so maybe not the best…
Is it necessary to make another file? A section listing system distributions' package managers' dependencies for running make
wouldn't be too long.
I'd like a separate project for each POSIX section 1 utility to implement all the defined functionality.
My rough interpretation of ASV dating back some years (this is why I wrote ascii.h) was the following:
ASCII_US
is the unit…
There are some nuances I'm trying to figure out.
One is specifically at the last dd(1p) invocation here:
$ </dev/zero dd bs=10 count=10
I think we ought to reopen this issue as an ongoing discussion regarding ASV handling in Bonsai.
dd(1p)
Emma and I have discussed a solution to input/output direction, mm(1), which will replace cat(1p) and tee(1p). I've yet to write a utility proposal though.