netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: 陈嘉昀 <jiayunchen@smail.nju.edu.cn>
To: netdev <netdev@vger.kernel.org>
Subject: Report on Abnormal Behavior of "ip help" Command
Date: Sat, 27 Jan 2024 14:17:59 +0800	[thread overview]
Message-ID: <tencent_4889D8DA6825DFE26A4EE1B5@qq.com> (raw)

To whom it may concern,

I hope this email finds you well. I am writing to report a behavior which seems to be abnormal. I have observed "ip help" returns -1 (255), even if the help information is printed to the terminal successfully.

This is potentially causing trouble when we're automatically checking whether a tool is basically working, by checking its return code (normally, like coreutils tools, --help returns 0). Is that better to make it return 0 on help, or keep -1 to make it backward compatible?

The information on my working environment is: Ubuntu22.04, iproute2-5.15.0, libbpf 0.5.0.

Thank you for your time and efforts, I am looking forward to your reply.

Best regards,
Chen Jiayun

                 reply	other threads:[~2024-01-27  6:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=tencent_4889D8DA6825DFE26A4EE1B5@qq.com \
    --to=jiayunchen@smail.nju.edu.cn \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).