Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #11348

Re: declare -f produces non eval'able output

From Chet Ramey <chet.ramey@case.edu>
Newsgroups gnu.bash.bug
Subject Re: declare -f produces non eval'able output
Date 2015-08-13 15:03 -0400
Message-ID <mailman.8277.1439492624.904.bug-bash@gnu.org> (permalink)
References <20150813160644.884WSsE0u%izaberina@gmail.com>

Show all headers | View raw


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/

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: declare -f produces non eval'able output Chet Ramey <chet.ramey@case.edu> - 2015-08-13 15:03 -0400

csiph-web