bug-bash
[Top][All Lists]
Advanced

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

Re: consistency probs w/ 'readonly -f' & 'export -f


From: Chet Ramey
Subject: Re: consistency probs w/ 'readonly -f' & 'export -f
Date: Sun, 11 Jun 2017 17:51:34 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.1.1

On 6/9/17 12:36 PM, L A Walsh wrote:
> Greg Wooledge wrote:
>> I don't know what you mean. A function is not a name=value pair.
> The name is the name of the function, the value is
> what the function does.
>   declare -f hw='() { echo "Hello World\n"; }'

No. The world does not need another way to declare shell functions.
If you want something like that to work, there are ways you can make it
work using shell variables and `eval'.


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



reply via email to

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