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

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



Package: info
Version: 6.8-6

"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


-- System Information:
Architecture: i386

Versions of packages info depends on:
ii  libc6         2.35-3
ii  libtinfo6     6.3+20220423-2
ii  install-info  6.8-6

--
Jakub Wilk


Reply to: