Skip to content

Failure under NetBSD 10.0 /bin/ksh #38

Description

@ebblake

Reported by Bruno Haible when testing an m4 snapshot:
https://lists.gnu.org/archive/html/bug-m4/2025-04/msg00047.html

Pasting that here:

FAIL: test-option-parser.sh
===========================

== running in '/bin/ksh' ==
[[ output check ]] args: --help
error: unexpected exit status 1 0
expected:
HELP
given:

error: unexpected output
[[ output check ]] args: --debug --help
error: unexpected exit status 1 0
expected:
HELP
given:

error: unexpected output
[[ output check ]] args: --test jej --help
error: unexpected exit status 1 0
expected:
HELP
given:

error: unexpected output
[[ output check ]] args: --debug --test jej --help
error: unexpected exit status 1 0
expected:
HELP
given:

error: unexpected output
[[ output check ]] args: --test=jej --help
error: unexpected exit status 1 0
expected:
HELP
given:

error: unexpected output
[[ output check ]] args: --debug --test=jej --help
error: unexpected exit status 1 0
expected:
HELP
given:

error: unexpected output
[[ output check ]] args: --test= --help
error: unexpected exit status 1 0
expected:
HELP
given:

error: unexpected output
[[ output check ]] args: --debug --test= --help
error: unexpected exit status 1 0
expected:
HELP
given:

error: unexpected output
[[ output check ]] args: --test=
error: unexpected exit status 1 0
expected:
EMPTY_TEST
given:

error: unexpected output
[[ output check ]] args: --debug --test=
error: unexpected exit status 1 0
expected:
EMPTY_TEST
given:

error: unexpected output
[[ output check ]] args: -t ""
error: unexpected exit status 1 0
expected:
EMPTY_TEST
given:

error: unexpected output
[[ output check ]] args: --debug -t ""
error: unexpected exit status 1 0
expected:
EMPTY_TEST
given:

error: unexpected output
[[ output check ]] args: --test ""
error: unexpected exit status 1 0
expected:
EMPTY_TEST
given:

error: unexpected output
[[ output check ]] args: --debug --test ""
error: unexpected exit status 1 0
expected:
EMPTY_TEST
given:

error: unexpected output
[[ output check ]] args: --test=false
expected:
FALSE_TEST
given:

error: unexpected output
[[ output check ]] args: --debug --test=false
expected:
FALSE_TEST
given:

error: unexpected output
[[ output check ]] args: -tfalse
expected:
FALSE_TEST
given:

error: unexpected output
[[ output check ]] args: --debug -tfalse
expected:
FALSE_TEST
given:

error: unexpected output
[[ output check ]] args: -t false
expected:
FALSE_TEST
given:

error: unexpected output
[[ output check ]] args: --debug -t false
expected:
FALSE_TEST
given:

error: unexpected output
[[ output check ]] args: 
error: unexpected exit status 1 0
expected:
UNSET_TEST
given:

error: unexpected output
[[ output check ]] args: --debug
error: unexpected exit status 1 0
expected:
UNSET_TEST
given:

error: unexpected output
[[ output check ]] args: a
error: unexpected exit status 1 0
expected:
ONE_ARG a
given:

error: unexpected output
[[ output check ]] args: --debug a
error: unexpected exit status 1 0
expected:
ONE_ARG a
given:

error: unexpected output
[[ output check ]] args: a b c
error: unexpected exit status 1 0
expected:
THREE_ARGS
given:

error: unexpected output
[[ output check ]] args: --debug a b c
error: unexpected exit status 1 0
expected:
THREE_ARGS
given:

error: unexpected output
[[ output check ]] args: a b c d
error: unexpected exit status 1 0
expected:
MORE_ARGS
given:

error: unexpected output
[[ output check ]] args: --debug a b c d
error: unexpected exit status 1 0
expected:
MORE_ARGS
given:

error: unexpected output
[[ output check ]] args: short
error: unexpected exit status 1 0
expected:
SHORTCUT
given:

error: unexpected output
[[ output check ]] args: --debug short
error: unexpected exit status 1 0
expected:
SHORTCUT
given:

error: unexpected output
[[ output check ]] args: shortcut
error: unexpected exit status 1 0
expected:
SHORTCUT
given:

error: unexpected output
[[ output check ]] args: --debug shortcut
error: unexpected exit status 1 0
expected:
SHORTCUT
given:

error: unexpected output
[[ output check ]] args: short --help
error: unexpected exit status 1 0
expected:
HELP
given:

error: unexpected output
[[ output check ]] args: --debug short --help
error: unexpected exit status 1 0
expected:
HELP
given:

error: unexpected output
[[ output check ]] args: eval "echo eval ; exit 4"
error: unexpected exit status 1 4
expected:
eval
given:

error: unexpected output
[[ output check ]] args: --debug eval "echo eval ; exit 4"
error: unexpected exit status 1 4
expected:
eval
given:

error: unexpected output
[[ output check ]] args: validate_out eval "echo eval ; exit 4"
error: unexpected exit status 1 4
expected:
eval
given:

error: unexpected output
[[ output check ]] args: --debug validate_out eval "echo eval ; exit 4"
error: unexpected exit status 1 4
expected:
eval
given:

error: unexpected output
[[ retval check ]] args: --test
[[ retval check ]] args: --not-existent
[[ retval check ]] args: short --not-existent
[[ grep for 'test-version' ]] args: --version
error: test-version is not in stdout 
error: unexpected retval 1 (should be 0)
[[ grep for 'test-version' ]] args: --version --whatever
error: test-version is not in stdout 
error: unexpected retval 1 (should be 0)
[[ grep for 'test-version' ]] args: --debug --version
error: test-version is not in stdout 
error: unexpected retval 1 (should be 0)
error: can't run in /bin/ksh
== running in 'default shell' ==
[[ output check ]] args: --help
[[ output check ]] args: --debug --help
[[ output check ]] args: --test jej --help
[[ output check ]] args: --debug --test jej --help
[[ output check ]] args: --test=jej --help
[[ output check ]] args: --debug --test=jej --help
[[ output check ]] args: --test= --help
[[ output check ]] args: --debug --test= --help
[[ output check ]] args: --test=
[[ output check ]] args: --debug --test=
[[ output check ]] args: -t ""
[[ output check ]] args: --debug -t ""
[[ output check ]] args: --test ""
[[ output check ]] args: --debug --test ""
[[ output check ]] args: --test=false
[[ output check ]] args: --debug --test=false
[[ output check ]] args: -tfalse
[[ output check ]] args: --debug -tfalse
[[ output check ]] args: -t false
[[ output check ]] args: --debug -t false
[[ output check ]] args: 
[[ output check ]] args: --debug
[[ output check ]] args: a
[[ output check ]] args: --debug a
[[ output check ]] args: a b c
[[ output check ]] args: --debug a b c
[[ output check ]] args: a b c d
[[ output check ]] args: --debug a b c d
[[ output check ]] args: short
[[ output check ]] args: --debug short
[[ output check ]] args: shortcut
[[ output check ]] args: --debug shortcut
[[ output check ]] args: short --help
[[ output check ]] args: --debug short --help
[[ output check ]] args: eval "echo eval ; exit 4"
[[ output check ]] args: --debug eval "echo eval ; exit 4"
[[ output check ]] args: validate_out eval "echo eval ; exit 4"
[[ output check ]] args: --debug validate_out eval "echo eval ; exit 4"
[[ retval check ]] args: --test
[[ retval check ]] args: --not-existent
[[ retval check ]] args: short --not-existent
[[ grep for 'test-version' ]] args: --version
[[ grep for 'test-version' ]] args: --version --whatever
[[ grep for 'test-version' ]] args: --debug --version
FAIL test-option-parser.sh (exit status: 1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions