bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: functions can be created with dotted name but not removed


From: DennisW
Subject: Re: functions can be created with dotted name but not removed
Date: Fri, 4 Dec 2009 15:21:33 -0800 (PST)
User-agent: G2/1.0

On Dec 4, 9:25 am, "Michael O'Donnell" <address@hidden> wrote:
> Configuration Information [Automatically generated, do not change]:
> Machine: i486
> OS: linux-gnu
> Compiler: gcc
> Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i486' 
> -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i486-pc-linux-gnu' 
> -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL 
> -DHAVE_CONFIG_H   -I.  -I../bash -I../bash/include -I../bash/lib   -g -O2 
> -Wall
> uname output: Linux e521 2.6.30-2-686 #1 SMP Sat Sep 26 01:16:22 UTC 2009 
> i686 GNU/Linux
> Machine Type: i486-pc-linux-gnu
>
> Bash Version: 4.0
> Patch Level: 28
> Release Status: release
>
> Description:
>
> 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

I can confirm that this behavior is also present in 3.2.49(23)-release
and 4.0.33(1)-release.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]