|
| From: | pk |
| Subject: | Re: functions can be created with dotted name but not removed |
| Date: | Fri, 04 Dec 2009 22:10:40 +0000 |
Michael O'Donnell wrote:
> A bash function with a dot in its name can be created and used with no
> problems but cannot be removed - the "unset" command chokes on the name.
>
>
> Repeat-By:
>
> This sequence yields the expected results:
>
> function f() { echo $FUNCNAME ; }
> f
> unset f
>
> ...while this sequence fails during the unset phase with the complaint
> that the name is not a valid identifier:
>
> function f.dot() { echo $FUNCNAME ; }
> f.dot
> unset f.dot
Try
unset -f f.dot
| [Prev in Thread] | Current Thread | [Next in Thread] |