On 1/1/24 4:38 PM, Federer Fanatic wrote:
Consider the following:
shopt -s extdebug
mapfile -d" " < <(declare -F <bash_function_in_some_rc_file)
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 c...@case.edu http://tiswww.cwru.edu/~chet/