On 10/23/17 6:10 PM, oliver.phy...@gmail.com wrote:

> 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.

Use `declare -fp' when you want to display function definitions to avoid
this.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    c...@case.edu    http://cnswww.cns.cwru.edu/~chet/

Reply via email to