From: <ch...@su...> - 2013-11-11 13:50:08
|
Hi! > > > for example: > > > $ netstat -s 1>netstat/dev/null 2>&1 ; echo $? > > > 1 > > > > This is completly bogus code, it returns nonzero because the file > > 'netstat/dev/null' cannot be found. It works for me if I remove the > > 'netstat' from the line. > > > Sorry, it a typo. Ok. > it will returns nonzero in ubuntu 12.04. it's a similar case to finger test. > > for example: > $ netstat -s 1>/dev/null 2>&1 ; echo $? > 1 Ah, so the -s is correct netstat switch and the 1 is invalid parameter (which gets ignored here) but apparently debian base distros are patched to return non-zero. So resend the patch with correct description (i.e. that this fixes the test on debian based distributions). -- Cyril Hrubis ch...@su... |