This isn't actually a reproducer, since, as others have said, declare -F
doesn't read stdin.
Can you provide a function definition and a value for `some rc file' that
others can use to reproduce this? Since you're using a space as the
delimiter, it's expected that MAPFILE[2] will have a trailing newline.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/