-
Notifications
You must be signed in to change notification settings - Fork 343
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
Return exit code when host not found #294
Comments
Decided this would be a project I could finish in the time before I had to respond to "your're invited for diner, come now" ..... |
Hi @rewolff, thanks for the feedback. Let me give you an example of what I'm talking about here, to see if helps: If the command runs successfully, I get return code 0: `:~$ mtr -C -c 3 terra.com.br :~$ echo $? So it returns 0, as expected. Let's try now a host that doesn't exist: :~$ echo $?
|
It has something to do with the options you're passing!
|
Any chance this may get fixed? |
I can confirm that |
When mtr is used on the command line and an invalid host is passed, mtr raises the message "Failed to resolve host: Name or service not known" but it returns 0, not -1 or any other code. Returning something different from zero when exiting the process with invalid host would make using it with other commands and pipes easier.
The text was updated successfully, but these errors were encountered: