1 2 3 4 5
old = beep(); if beep('on') <> 'on' then bugmes();quit;end; if beep('off') <> 'off' then bugmes();quit;end; if beep() <> 'off' then bugmes();quit;end; beep(old);