]> code.ossystems Code Review - openembedded-core.git/commit
bc: dc: fix exit code of q command
authorLi Zhou <li.zhou@windriver.com>
Mon, 1 Jul 2019 02:07:16 +0000 (10:07 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 2 Jul 2019 07:10:36 +0000 (08:10 +0100)
commitab16d9ccaf824fbda5e43c5b3cbdc43ec70be87f
tree9e0e0fb31987324bc97954f3efcc8b8a343f88c2
parentb97a5a37262a8d7ce45ae75d861e87dfe28fe0df
bc: dc: fix exit code of q command

The exit code for "echo q | dc" is 1 for dc-1.4.1;
while the exit code for "echo q | dc" is 0 for dc-1.4.

Here is the answer from ken@gnu.org:
dc-1.4 was right.  There was a rewrite of a chunk of code for 1.4.1 to
fix a corner case in the Q command, and somehow the placement of the
clean-up label for the 'q' command got misplaced on the error-handling
branch instead of the clean-exit branch.  The patch below fixes this
(it is committed for whenever the next bc/dc release gets made).

Thanks for the report,
        --Ken Pizzini

Signed-off-by: Li Zhou <li.zhou@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/bc/bc/0001-dc-fix-exit-code-of-q-command.patch [new file with mode: 0644]
meta/recipes-extended/bc/bc_1.07.1.bb