From: Harry Moreau (hmoreau at domain iona.com)
Date: Fri 17 Sep 1999 - 14:48:55 IST
> John P . Looney writes:
> > On Fri, Sep 17, 1999 at 12:07:35PM +0100, Sean McGrath mentioned:
> > > > And, later, call it with:
> > > > assert "$#" == "5"
> > > > Is there any way I can print out the name of the shell function that
> > > > assert() was called from ?
> > > $LINENO ? In bash anyways.
> > Good call. Means I've to look up the function that went bad, but it's a
> > start. C'mon gurus. This has to be possible.
$LINENO gets reset in functions, you would have to pass it in as a parameter.
By the way, assert "$#" == "5", is a syntax error in bash, ksh and good old sh.
What shell are we talking about?
-- Harry Moreau -------------
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:04:34 GMT