Use ASV #2
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
See bonsai/harakit#19
fortune(1) should keep using the format it always has. There's no reason to change it, we have files written for it, and it keeps interoperability with other implementations.
We have a character set specifically catered to use in this context. We
have the luxury of not having to worry about breaking compatibility
because we are a cohesive system and there is a native tabular format
that is specifically designed to circumvent weirdness like using a
percent sign as a tabular character.
As a note, 9front’s fortune(1) implementation seems to work differently
to how Unix fortune(1) does. It has no percent characters as far as I
can see.
https://git.9front.org/plan9front/plan9front/c813cfa1981b3566a34b4d614fa5ec2aaee53819/sys/man/1/fortune/f.html
I was correct.
9front's format is the same as the historical implementation; if I recall correctly the first implementation used a 500B buffer and looped fgets(3) randomly. The percent delimiter might have been a BSD invention. It's nice to be able to see the sources for quotes without bad line-wrapping.
We don't exist in a vacuum. There already exists two fortune file formats. I don't want to invent a third.
ed(1) used
\n.\nto cease input.\n%\nfits with that pattern. It's not like%as a single fortune is useful.