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);