Re: mapfile weirdness ^@ is added it would seem if output is quoted

2024-01-02 Thread Chet Ramey
On 1/1/24 4:38 PM, Federer Fanatic wrote: Consider the following: shopt -s extdebug mapfile -d" " < <(declare -F 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

Re: mapfile weirdness ^@ is added it would seem if output is quoted

2024-01-01 Thread Greg Wooledge
On Mon, Jan 01, 2024 at 04:38:20PM -0500, Federer Fanatic wrote: > Consider the following: > > shopt -s extdebug > mapfile -d" " < <(declare -F Results in the array MAPFILE having 3 entries with '2' entry containing the > filename > of bash function initial defining line I don't think this is

mapfile weirdness ^@ is added it would seem if output is quoted

2024-01-01 Thread Federer Fanatic
Consider the following: shopt -s extdebug mapfile -d" " < <(declare -F /lib/x86_64-linux-gnu/libtinfo.so.6 (0x7fa3b23c8000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x7fa3b21a) /lib64/ld-linux-x86-64.so.2 (0x7fa3b257d000)