On 4/6/23 1:04 PM, Grisha Levit wrote:
If $var is non-empty and not a valid a number, {var}>&- silently closes fd
0.
Thanks for the report. The check should be == 0.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ra
On 4/6/23 4:20 PM, Grisha Levit wrote:
$ declare -n ref=arr[1]
$ arr=(A); (echo "${ref=X} ${ref}")
A X
$ arr=( ); (echo "${ref=X} ${ref}")
Segmentation fault: 11
Expanding the nameref while still in parameter_brace_expand seems to do the
right thing though I can't say I'm fully confident in this