You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BSD (and therefore macos) ping uses the -t flag for timeouts, not the -w for the linux tool (or the -w/--timeout for the GNU inetutils variant).
I’ve submitted NixOS/nixpkgs#195532 to fix this in the distribution I’m using (they patch msmtpq paths anyway) but it would be good to have a fix considered here. I’m not sure of the best option, but it would be very good to avoid this redirection of stderr to /dev/null, as this concealed the issue.
Since Linux also supports -t, it is not clear how to check by the ping command itself which option is intended if one does not want to parse its documentation.
Therefore, better to check if it is run on a Mac by "$(uname)" = "Darwin" ?
BSD (and therefore macos) ping uses the
-t
flag for timeouts, not the-w
for the linux tool (or the-w
/--timeout
for the GNU inetutils variant).I’ve submitted NixOS/nixpkgs#195532 to fix this in the distribution I’m using (they patch
msmtpq
paths anyway) but it would be good to have a fix considered here. I’m not sure of the best option, but it would be very good to avoid this redirection of stderr to/dev/null
, as this concealed the issue.https://github.com/marlam/msmtp-mirror/blob/7e5e2345c3052e1b9aaa3c57ddd821b33c1d382f/scripts/msmtpq/msmtpq#L208
The text was updated successfully, but these errors were encountered: