Re: Function with illegal identifier can be defined, but can't be unset.
From:
William Park
Subject:
Re: Function with illegal identifier can be defined, but can't be unset.
Date:
Tue, 19 Oct 2004 23:04:00 -0400
User-agent:
Mutt/1.4.2i
On Tue, Oct 19, 2004 at 10:56:38PM -0400, Chris F.A. Johnson wrote:
> On Tue, 19 Oct 2004, William Park wrote:
>
> >Bash Version: 3.0
> >Patch Level: 0
> >
> >Description:
> >
> > Function with illegal identifier (eg. with hyphen or dot) can be
> > defined, as in
> > func-aa () { echo 11; }
> > func.aa () { echo 22; }
> > But, they cannot be removed, as in
> > unset func-aa func.aa --> ...: not a valid identifier
>
> unset -f func-aa func.aa
Thanks Chris!
--
William Park <opengeometry@yahoo.ca>
Open Geometry Consulting, Toronto, Canada