On Fri, 26 Jun 2015 09:31:45 +0200
Bastian Bittorf wrote:
> * Vadim Kochan [15.06.2015 18:36]:
> > > root@box:~ ip route list exact '0.0.0.0/8'
> > > root@box:~ echo $?
> > > 0
> > >
> > > i expected an RC of != 0 when there is no match.
> > > is this by design?
> > >
> > > root@box:~ ip -V
>
* Vadim Kochan [15.06.2015 18:36]:
> > root@box:~ ip route list exact '0.0.0.0/8'
> > root@box:~ echo $?
> > 0
> >
> > i expected an RC of != 0 when there is no match.
> > is this by design?
> >
> > root@box:~ ip -V
> > ip utility, iproute2-ss4.0.0-1-openwrt
>
> I think that RC != 0 only in cas
when executing e.g.:
root@box:~ ip route list exact '0.0.0.0/0'
default via 10.63.42.125 dev eth0.2 metric 2 onlink
root@box:~ echo $?
0
root@box:~ ip route list exact '0.0.0.0/8'
root@box:~ echo $?
0
i expected an RC of != 0 when there is no match.
is this by design?
root@box:~ ip -V
ip utili