bug-bash
[Top][All Lists]
Advanced

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

Re: Can create BASH functions that can't be deleted


From: Chris F.A. Johnson
Subject: Re: Can create BASH functions that can't be deleted
Date: Sun, 15 Jan 2006 13:49:37 -0500 (EST)

On Fri, 13 Jan 2006, Michael ODonnell wrote:

Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: linux-gnu
Compiler: i386-redhat-linux-gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' -DCONF_OSTYPE='linu
x-gnu' -DCONF_MACHTYPE='i386-redhat-linux-gnu' -DCONF_VENDOR='redhat' -DLOCALEDI
R='/usr/share/locale' -DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H  -I.  -I. -I./inc
lude -I./lib  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -m32 -marc
h=i386 -mtune=pentium4
uname output: Linux sonic-mike1 2.6.9-22.ELsmp #1 SMP Mon Sep 19 18:32:14 EDT 20
05 i686 i686 i386 GNU/Linux
Machine Type: i386-redhat-linux-gnu

Bash Version: 3.0
Patch Level: 15
Release Status: release

Description:
       Naming restriction inconsistencies allow us to create
       BASH functions that can't be deleted.

Repeat-By:
       function a.b() { echo My name is $FUNCNAME; }

       a.b
       My name is a.b

       unset a.b
       -bash: unset: `a.b': not a valid identifier

unset -f a.b


--
   Chris F.A. Johnson                      <http://cfaj.freeshell.org>
   ===================================================================
   Author:
   Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)




reply via email to

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