<feed xmlns='http://www.w3.org/2005/Atom'>
<title>eut/src/pre, branch main</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<id>http://euandre.org/git/eut/atom?h=main</id>
<link rel='self' href='http://euandre.org/git/eut/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://euandre.org/git/eut/'/>
<updated>2025-05-05T10:49:20Z</updated>
<entry>
<title>src/pre: Use sed(1) and handle buffering with stdbuf(1)</title>
<updated>2025-05-05T10:49:20Z</updated>
<author>
<name>EuAndreh</name>
<email>eu@euandre.org</email>
</author>
<published>2025-05-05T10:49:11Z</published>
<link rel='alternate' type='text/html' href='http://euandre.org/git/eut/commit/?id=0b923a04119ed5fb2bef3cf02ae2280daac11920'/>
<id>urn:sha1:0b923a04119ed5fb2bef3cf02ae2280daac11920</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>src/pre: Add "-n" to prevent ":" output</title>
<updated>2024-10-12T18:33:53Z</updated>
<author>
<name>EuAndreh</name>
<email>eu@euandre.org</email>
</author>
<published>2024-10-12T18:33:53Z</published>
<link rel='alternate' type='text/html' href='http://euandre.org/git/eut/commit/?id=ca051b06a95b856cd3cb033bbef5ae2ea66f89f3'/>
<id>urn:sha1:ca051b06a95b856cd3cb033bbef5ae2ea66f89f3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>src/pre: Add working utility</title>
<updated>2024-05-08T11:24:03Z</updated>
<author>
<name>EuAndreh</name>
<email>eu@euandre.org</email>
</author>
<published>2024-05-08T09:52:20Z</published>
<link rel='alternate' type='text/html' href='http://euandre.org/git/eut/commit/?id=532541e6441afa921bf32867acb8123459c6769e'/>
<id>urn:sha1:532541e6441afa921bf32867acb8123459c6769e</id>
<content type='text'>
</content>
</entry>
</feed>
