Re: Ignoring trap command for a grep function

From: Alan Balmer (albalmer_at_att.net)
Date: 10/25/05

  • Next message: Kenny McCormack: "Re: Ignoring trap command for a grep function"
    Date: Tue, 25 Oct 2005 11:24:26 -0700
    
    

    On Tue, 25 Oct 2005 15:41:10 GMT, gazelle@yin.interaccess.com (Kenny
    McCormack) wrote:

    >In article <Zc2dnZZqfpP6A0jfRVn-2A@comcast.com>,
    >Henry Townsend <henry.townsend@not.here> wrote:
    >>Chris F.A. Johnson wrote:
    >>> On 2005-07-13, sharma.raghvendra@gmail.com wrote:
    >>>
    >>>>Hi,
    >>>>
    >>>>We have a trap statement for every non zero returning command/function.
    >>>
    >>>
    >>> Don't.
    >>
    >>I don't make a habit of disagreeing with CFAJ but must make an exception
    >>in this case.
    >
    >Don't be afraid to disagree with CFAJ. His comments, though technically
    >correct, are rarely useful. It's just like in (the joke newsgroup known,
    >somewhat comically, as) comp.lang.c. The topic is defined so narrowly and
    >absurdly that the answers, though technically correct, are useless.
    <OT>
    Poor Kenny. The people in comp.lang.c aren't amenable to redefining
    the purpose of the newsgroup to suit him. One wonders why he continues
    to hang around there ;-)
    </OT>
    >
    >Note, especially, his ridiculous assertion that using "trap ERR" is wrong
    >because it isn't POSIX and thus, not guaranteed to be present in every
    >(POSIX) shell. But the OP was already using it (in a large script in an
    >existing environment, neither of which were going to change)! So, that
    >complaint is obviously bogus.

    -- 
    Al Balmer
    Balmer Consulting
    removebalmerconsultingthis@att.net
    

  • Next message: Kenny McCormack: "Re: Ignoring trap command for a grep function"

    Relevant Pages

    • Re: Ignoring trap command for a grep function
      ... >>I don't make a habit of disagreeing with CFAJ but must make an exception ... >Don't be afraid to disagree with CFAJ. ... It's just like in (the joke newsgroup known, ... >(POSIX) shell. ...
      (comp.unix.solaris)
    • Re: Ignoring trap command for a grep function
      ... >I don't make a habit of disagreeing with CFAJ but must make an exception ... Don't be afraid to disagree with CFAJ. ... absurdly that the answers, though technically correct, are useless. ... because it isn't POSIX and thus, not guaranteed to be present in every ...
      (comp.unix.programmer)
    • Re: Ignoring trap command for a grep function
      ... >>I don't make a habit of disagreeing with CFAJ but must make an exception ... >Don't be afraid to disagree with CFAJ. ... It's just like in (the joke newsgroup known, ... >(POSIX) shell. ...
      (comp.unix.programmer)
    • Re: Ignoring trap command for a grep function
      ... >I don't make a habit of disagreeing with CFAJ but must make an exception ... Don't be afraid to disagree with CFAJ. ... absurdly that the answers, though technically correct, are useless. ... because it isn't POSIX and thus, not guaranteed to be present in every ...
      (comp.unix.shell)
    • Re: Ignoring trap command for a grep function
      ... >>I don't make a habit of disagreeing with CFAJ but must make an exception ... >Don't be afraid to disagree with CFAJ. ... It's just like in (the joke newsgroup known, ... >(POSIX) shell. ...
      (comp.unix.shell)