[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
functions can be created with dotted name but not removed
From: |
Michael O'Donnell |
Subject: |
functions can be created with dotted name but not removed |
Date: |
Fri, 4 Dec 2009 10:25:53 -0500 (EST) |
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