Re: RFE? request for an "undefined" attribute for functions
From:
Greg Wooledge
Subject:
Re: RFE? request for an "undefined" attribute for functions
Date:
Mon, 2 Aug 2010 08:46:43 -0400
User-agent:
Mutt/1.4.2.3i
On Sun, Aug 01, 2010 at 06:10:31PM -0700, Linda Walsh wrote:
> I had(have) several functions that I don't use on a regular basis (rarely),
> that
> I had put into a subdir "func_lib" under my local-definitions directory.
> This came from ksh, which allows you to define functions with an "undef"
> attribute,
> and at runtime, the first time these functions were referenced,
(You lost some words here.)
> Is this something that might have been considered for bash? It seems like it
> could have some usefulness?
There is a command_not_found_handle in bash 4. You could define it to
look for functions in your directory.