summaryrefslogtreecommitdiff
path: root/src/pre (follow)
Commit message (Collapse)AuthorAgeFilesLines
* src/pre: Use sed(1) and handle buffering with stdbuf(1)EuAndreh2025-05-051-4/+1
| | | | | | | | | | | | The while loop and its variables where trimming the string undesirably: $ printf '\ta\n b\n' | pre -n out out a out b Previously, pre(1) would buffer its output if it wasn't a terminal, and I didn't want to add the proprietary -u flag to the sed(1) call. Now we use stdbuf(1) instead, and get the same behaviour, besides being much much faster.
* src/pre: Add "-n" to prevent ":" outputEuAndreh2024-10-121-1/+16
|
* src/pre: Add working utilityEuAndreh2024-05-081-0/+18