[Toybox] [PATCH] ping: fix -q behavior.

Rob Landley rob at landley.net
Thu Jun 14 18:13:08 PDT 2018


On 06/14/2018 06:11 PM, enh wrote:
> This matches iputils and busybox.

I couldn't figure out what their -q was for. Those are printing the header and
footer text so not "quiet", and it's continuing to ping after confirming the
site is up so it's not "quick". The one I implemented is both quick and quiet:
you don't have to > /dev/null to have no output, and if you're doing a script
ala "if ping -q site; then echo site is up; fi" this returns as soon as it has a
result.

If you have a user that cares (including you personally) I'm happy to change it
back, but I'd like to confirm because this deviation was intentional.

Rob



More information about the Toybox mailing list