Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

isbn_doi2tex exit code #129

Open
thjbdvlt opened this issue Jul 28, 2024 · 0 comments
Open

isbn_doi2tex exit code #129

thjbdvlt opened this issue Jul 28, 2024 · 0 comments

Comments

@thjbdvlt
Copy link

thjbdvlt commented Jul 28, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant