logo       

Re: Function with illegal identifier can be defined, but can't be unset.: msg#00279

shells.bash.bugs

Subject: Re: Function with illegal identifier can be defined, but can't be unset.

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@xxxxxxxx>
Open Geometry Consulting, Toronto, Canada


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise