[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1021827: info -o: exit status 0 on error



Control: tags -1 + fixed-upstream

Am 15.10.2022 um 15:47 teilte Jakub Wilk mit:

"info -o" exits with status 0 when it can't find the node:

     $ info -o /dev/null lolcow
     info: No menu item 'lolcow' in node '(dir)Top'

     $ echo $?
     0

In contrast, if I omit the -o option, it exits with status 1, as it should:

     $ info lolcow
     info: No menu item 'lolcow' in node '(dir)Top'

     $ echo $?
     1

Fixed in git, tagging.

commit 15408a7b46ae1c0deadaf386481cb32a91208374
Author: Gavin Smith <gavinsmith0123@gmail.com>
Date:   Sun Oct 16 12:35:37 2022 +0100

    * info/info.c (main) <--output>: Exit with status of 1, not 0,
    if there was an error.  Report from Hilmar Preusse <hille42@web.de>.

H.
--
sigfault

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


Reply to: