[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20150604081638.GI16021@medion.lan>
Date: Thu, 4 Jun 2015 10:16:38 +0200
From: Bastian Bittorf <bittorf@...ebottle.com>
To: netdev@...r.kernel.org
Subject: iproute2 / question: returncode when query a match
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 utility, iproute2-ss4.0.0-1-openwrt
bye, bastian
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists