Skip to content

isbn_doi2tex exit code #129

@thjbdvlt

Description

@thjbdvlt

hello :)

i've seen that unlike isbn_meta, that returns exit code 1 if no reference is found, isbn_doi2tex always returns 0, which makes scripting less easy than for isbn_meta. it's absolutely minor but i think it would be more consistent if it returns 1 when it fails, just like isbn_meta. as it doesn't seem quite an hard thing to solve, i may manage to do it by myself if it seems to be a good idea.

isbn_meta:

$ isbn_meta thisisnotanisbn 2>/dev/null
echo $?
1

isbn_doi2tex:

$ isbn_doi2tex andthisisnotadoi 2>/dev/null
echo $?
Usage: isbn_doi2tex DOI
0

thank's for reading and have a nice day :)

version: 4.3.29

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions