[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mapfile weirdness ^@ is added it would seem if output is quoted
From: |
Chet Ramey |
Subject: |
Re: mapfile weirdness ^@ is added it would seem if output is quoted |
Date: |
Tue, 2 Jan 2024 10:55:48 -0500 |
User-agent: |
Mozilla Thunderbird |
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 chet@case.edu http://tiswww.cwru.edu/~chet/