diff options
author | Jacob Moody <moody@posixcafe.org> | 2022-09-29 00:51:24 +0000 |
---|---|---|
committer | Jacob Moody <moody@posixcafe.org> | 2022-09-29 00:51:24 +0000 |
commit | fbf9f131b5931defb02ff08d54d1e088d9f51a15 (patch) | |
tree | 51e959d9441d76041b5d43dfc4c439966331ae22 /sys/src/cmd | |
parent | a7fbcde475eb40800940467f97830951105ddb00 (diff) |
bar: leave last aux on screen on eof
This allows a static aux with:
echo 'a | b' | bar | ...
Diffstat (limited to 'sys/src/cmd')
-rw-r--r-- | sys/src/cmd/bar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/bar.c b/sys/src/cmd/bar.c index 2db493319..1157ad245 100644 --- a/sys/src/cmd/bar.c +++ b/sys/src/cmd/bar.c @@ -200,9 +200,9 @@ auxproc(void *c) Binit(&b, 0, OREAD); for(;;){ s = Brdstr(&b, '\n', 1); - sendp(c, s ? s : strdup("")); if(s == nil) break; + sendp(c, s); } Bterm(&b); |