Skip to contentSkip to conversation

brctl returns 0 on error

Bridge Aycan iRiCAN 2 participants 2 messages Nov 19, 2004 Ethernet bridge

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw
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.