POV-Ray : Newsgroups : povray.off-topic : Funniest bug ever : Re: Funniest bug ever Server Time
29 Jul 2024 04:30:55 EDT (-0400)
  Re: Funniest bug ever  
From: Orchid Win7 v1
Date: 25 Feb 2013 14:00:20
Message: <512bb4c4$1@news.povray.org>
>> Exception handling is not an OOP feature. And yes, bash /does/ have it:
>>
>>     set -e trap "echo aborted by user || kill -INT $$" INT trap "echo
>>     aborted by other process || kill -TERM $$" TERM trap "echo error
>>     reported" EXIT
>>
>>       ... critical section ...
>>
>>     set +e trap - INT trap - TERM trap - EXIT
>
> Interesting, I didn't know that.  Thanks!

It's truly terrifying just how much stuff you /can/ do with Bash.

(At this point I must remind you that just because you /can/ does NOT, 
in any way, imply that you /should/!!)


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.