bc: fix exit codes for FEATURE_CLEAN_UP=y
authorDenys Vlasenko <vda.linux@googlemail.com>
Thu, 6 Dec 2018 22:06:57 +0000 (23:06 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 6 Dec 2018 22:06:57 +0000 (23:06 +0100)
commitc7a7ce06b82ef6a4e5f6146046792daf666e3c6d
tree686f3ae9f340fcfdcffacc07fe60bc1d2729c9c3
parenta1331371748fe23ffaec0720f5c5f4f661c37789
bc: fix exit codes for FEATURE_CLEAN_UP=y

$ echo 0/0 | ./busybox bc; echo $?
bc: divide by zero
1
$ echo halt | ./busybox bc; echo $?
0   <------- was 1

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