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
chru...@suse.cz

------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to