ref: fbf9f131b5931defb02ff08d54d1e088d9f51a15
parent: a7fbcde475eb40800940467f97830951105ddb00
author: Jacob Moody <moody@posixcafe.org>
date: Wed Sep 28 20:51:24 EDT 2022
bar: leave last aux on screen on eof This allows a static aux with: echo 'a | b' | bar | ...
--- a/sys/src/cmd/bar.c
+++ b/sys/src/cmd/bar.c
@@ -200,9 +200,9 @@
Binit(&b, 0, OREAD);
for(;;){
s = Brdstr(&b, '\n', 1);
- sendp(c, s ? s : strdup(""));
if(s == nil)
break;
+ sendp(c, s);
}
Bterm(&b);