[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: declare -f produces non eval'able output
From: |
Chet Ramey |
Subject: |
Re: declare -f produces non eval'able output |
Date: |
Thu, 13 Aug 2015 15:03:31 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.0.1 |
On 8/13/15 12:06 PM, isabella parakiss wrote:
> declare -f doesn't know that most keywords are valid function names:
>
> $ function time () { :; }
> $ declare -f time
> time ()
> {
> :
> }
>
> It should probably check if the name is if/for/time... before printing it.
Thanks for the report.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/