[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
'declare -f|-F FUNCNAME' fails if FUNCNAME contains a '['
From: |
oliver . physik |
Subject: |
'declare -f|-F FUNCNAME' fails if FUNCNAME contains a '[' |
Date: |
Tue, 24 Oct 2017 00:10:26 +0200 |
Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu' -DCONF_VENDO$
uname output: Linux deb 4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC
2016 x86_64 x86_64 x86_64 GNU/Linux
Machine Type: x86_64-pc-linux-gnu
Bash Version: 4.3
Patch Level: 46
Release Status: release
Description:
If a function FUNCNAME contains the '[' character, 'declare -F
FUNCNAME' and 'declare -f FUNCNAME'
fails:
bash: declare: `[': not a valid identifier
If called without argument FUNCNAME (to display all declared functions)
FUNCNAME is displayed
correctly.
Best wishes
Oliver Physik
- 'declare -f|-F FUNCNAME' fails if FUNCNAME contains a '[',
oliver . physik <=