dc: fix EOF handling in case of last line being incomplete
authorDenys Vlasenko <vda.linux@googlemail.com>
Wed, 12 Dec 2018 20:56:06 +0000 (21:56 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 12 Dec 2018 20:56:06 +0000 (21:56 +0100)
commitd8078a79beb665cb3c0408dbbbba132cff9fdc3b
treefb5d395bbbf0382d80d30f09d5e67d4a2ea5abe8
parent9a23b07c4c0d06c40d7c0ce91c5fdf7c8449ac49
dc: fix EOF handling in case of last line being incomplete

This wasn't working correctly:

$ echo -ne '10 20+p' | dc
30

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
miscutils/bc.c