bug-bash
[Top][All Lists]
Advanced

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

Re: declare -p my_function does not print its definition. A bug?


From: Chet Ramey
Subject: Re: declare -p my_function does not print its definition. A bug?
Date: Sat, 18 Oct 2014 18:21:15 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.2.0

On 10/18/14 11:25 AM, Alan Wild wrote:
> I'll agree it's non-obvious, but this works for me on a BASH 2.x I have
> handy.
> 
> address@hidden:~$ echo $BASH_VERSION
> 2.05b.0(1)-release
> address@hidden:~$ function myfunc() { :; }
> address@hidden:~$ declare -f myfunc
> myfunc ()
> {
>     :
> }

The problem was specific to `declare -fp name'.


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



reply via email to

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