-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
tldr should not return 0 when a TLDR page is not found #4227
Comments
Hey there, @letompouce! Thanks for the report. Indeed, that does sound like a bug - I agree the exit code should reflect whether it finds a page or not. This makes it easier to drive via a script - and indeed my tldr-missing-pages script relies on it. However, this is a client-specific feature, and this repository is just for the pages themselves. Do you know which client you're using (or perhaps how you installed it)? I can direct you to the correct repository to report this if you are unsure :-) |
Judging by the syntax of the error message, the client is tldr-python-client, which is fixed by tldr-pages/tldr-python-client#129 |
Hi, Sorry for the delay, summertime and brain meltdown! That was both: Haskell client from the Debian Buster package ( Thanks you all for the issue forwarding, python client fix, specification update! |
Description
When
tldr
doesn't find a TLDR page, it should not return 0.Steps to reproduce
Feed
tldr
with a trainspotting-powered argument, observe its return code.Expected result
tldr
does not return 0Actual restult
tldr
return 0 whatever you feed it with.Example
Why would this been addressed
For instance, when a page is not found in your $LANG language, this would allow to fallback to
en
(which supposedly has more references, being the default language) , such as:tldr ss || tldr --language en ss
Actual result
Expected result
The text was updated successfully, but these errors were encountered: