On Tue, Feb 8, 2011 at 1:31 AM, Manas Alekar <manas_ale...@yahoo.com> wrote: >> In the following bash code snippet; my main aim is to throw a string >>'Unhandled exception occurred' using trap command. > > Trap is a mechanism for signal handling. You cannot do exception handling with > trap. Reading: man 7 signal. > > Manas > > _______________________________________ > Pune GNU/Linux Users Group Mailing List >
If I am correct that is only "part"ly true. in phraseology of computing and hardware... trap is associated with highest priority non maskable interrupt... but that again may be a "part" truth :-) -- ९. Stupid question always warrants a stupid answer! २. Why question the answer, unless question itself is the answer ? ५. No question is ever stupid! _______________________________________ Pune GNU/Linux Users Group Mailing List