brctl returns 0 on error
Hi,
"brctl" returns 0 when trying to delete non-existent bridge. If it returns 0, scripting will be an headache. It should return different than 0.
# brctl delbr geek bridge geek doesn't exist; can't delete it # echo $? 0
Thanks.
Signature · 3 lines
Aycan iRiCAN Core Computer Security Group http://www.core.gen.tr
Quoted 8 lines · On Fri, 19 Nov 2004 16:29:54 +0200 Aycan iRiCAN <[email protected]> wrote:
Hi,
"brctl" returns 0 when trying to delete non-existent bridge. If it returns 0, scripting will be an headache. It should return different than 0.
# brctl delbr geek bridge geek doesn't exist; can't delete it
That is true for old versions of the bridge utilities.